Skip to content

Commit 8ff7d09

Browse files
committed
[CMake][Clang] Workaround build issue due to export ,DATA on Windows
1 parent da3797b commit 8ff7d09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

clang/tools/clang-repl/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ add_clang_tool(clang-repl
1818
if(MSVC)
1919
set_target_properties(clang-repl PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS 1)
2020

21+
# Remove ,DATA in export symbols 4adce336f46235aa74c95a3664fe8150c640e4f5
22+
# icx driver unable to pass the export symbol correctly to lld-linker.
2123
# RTTI/C++ symbols
22-
set(clang_repl_exports ${clang_repl_exports} ??_7type_info@@6B@,DATA
23-
?__type_info_root_node@@3U__type_info_node@@A,DATA
24-
?nothrow@std@@3Unothrow_t@1@B,DATA
24+
set(clang_repl_exports ${clang_repl_exports} ??_7type_info@@6B@
25+
?__type_info_root_node@@3U__type_info_node@@A
26+
?nothrow@std@@3Unothrow_t@1@B
2527
)
2628

2729
# Compiler added symbols for static variables. NOT for VStudio < 2015
28-
set(clang_repl_exports ${clang_repl_exports} _Init_thread_abort _Init_thread_epoch,DATA
29-
_Init_thread_footer _Init_thread_header _tls_index,DATA
30+
set(clang_repl_exports ${clang_repl_exports} _Init_thread_abort _Init_thread_epoch
31+
_Init_thread_footer _Init_thread_header _tls_index
3032
)
3133

3234
if(CMAKE_SIZEOF_VOID_P EQUAL 8)

0 commit comments

Comments
 (0)