[PATCH] D78510: Fix Solaris build of ubsan.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 20 12:27:40 PDT 2020
eugenis created this revision.
eugenis added a reviewer: ro.
Herald added subscribers: Sanitizers, fedor.sergeev, mgorny.
Herald added a project: Sanitizers.
Broken in D78325 <https://reviews.llvm.org/D78325>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78510
Files:
compiler-rt/lib/ubsan/CMakeLists.txt
Index: compiler-rt/lib/ubsan/CMakeLists.txt
===================================================================
--- compiler-rt/lib/ubsan/CMakeLists.txt
+++ compiler-rt/lib/ubsan/CMakeLists.txt
@@ -214,6 +214,11 @@
EXTRA ubsan.syms.extra)
set(VERSION_SCRIPT_FLAG
-Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/clang_rt.ubsan_standalone-dynamic-${arch}.vers)
+ # The Solaris 11.4 linker supports a subset of GNU ld version scripts,
+ # but requires a special option to enable it.
+ if (OS_NAME MATCHES "SunOS")
+ list(APPEND VERSION_SCRIPT_FLAG -Wl,-z,gnu-version-script-compat)
+ endif()
set_property(SOURCE
${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
APPEND PROPERTY
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78510.258808.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200420/4ad31abc/attachment.bin>
More information about the llvm-commits
mailing list