From d3d301d8ffcaa290376c3fb31c616db33ca24271 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 25 Jan 2021 12:40:28 +0200 Subject: [PATCH] gen: use externally_visible too for VV_EXPORTED_SYMBOL when ARM is defined --- vlib/v/gen/cheaders.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vlib/v/gen/cheaders.v b/vlib/v/gen/cheaders.v index 900c326861..f7c39d88ec 100644 --- a/vlib/v/gen/cheaders.v +++ b/vlib/v/gen/cheaders.v @@ -107,7 +107,11 @@ typedef int (*qsort_callback_func)(const void*, const void*); #define __has_attribute(x) 0 // Compatibility with non-clang compilers. #endif #if (defined(__GNUC__) && (__GNUC__ >= 4)) || (defined(__clang__) && __has_attribute(visibility)) - #define VV_EXPORTED_SYMBOL extern __attribute__ ((visibility ("default"))) + #ifdef ARM + #define VV_EXPORTED_SYMBOL extern __attribute__((externally_visible,visibility("default"))) + #else + #define VV_EXPORTED_SYMBOL extern __attribute__((visibility("default"))) + #endif #define VV_LOCAL_SYMBOL __attribute__ ((visibility ("hidden"))) #else #define VV_EXPORTED_SYMBOL extern