File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -594,9 +594,15 @@ intptr_t INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR = 0;
594
594
* whether or not the compiler defined this symbol. */
595
595
#if defined(_WIN32 )
596
596
COMPILER_RT_VISIBILITY extern intptr_t INSTR_PROF_PROFILE_COUNTER_BIAS_VAR ;
597
- #pragma comment(linker, "/alternatename:" \
598
- INSTR_PROF_QUOTE(INSTR_PROF_PROFILE_COUNTER_BIAS_VAR) "=" \
599
- INSTR_PROF_QUOTE(INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR))
597
+ #if defined(_M_IX86 ) || defined(__i386__ )
598
+ #define WIN_SYM_PREFIX "_"
599
+ #else
600
+ #define WIN_SYM_PREFIX
601
+ #endif
602
+ #pragma comment( \
603
+ linker, "/alternatename:" WIN_SYM_PREFIX INSTR_PROF_QUOTE( \
604
+ INSTR_PROF_PROFILE_COUNTER_BIAS_VAR) "=" WIN_SYM_PREFIX \
605
+ INSTR_PROF_QUOTE(INSTR_PROF_PROFILE_COUNTER_BIAS_DEFAULT_VAR))
600
606
#else
601
607
COMPILER_RT_VISIBILITY extern intptr_t INSTR_PROF_PROFILE_COUNTER_BIAS_VAR
602
608
__attribute__((weak , alias (INSTR_PROF_QUOTE (
You can’t perform that action at this time.
0 commit comments