We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f092dfb commit 87d07e6Copy full SHA for 87d07e6
zorg/jenkins/build.py
@@ -569,6 +569,12 @@ def lldb_cmake_builder(target, variant=None):
569
570
if variant == 'sanitized':
571
cmake_cmd.append('-DLLVM_USE_SANITIZER=Address;Undefined')
572
+ # By default macOS prevents an asanified dylib to be loaded into the system linker.
573
+ liblto = (
574
+ os.path.dirname(run_collect_output(["xcrun", "--find", "clang"]).strip())
575
+ + "../lib/libLTO.dylib"
576
+ )
577
+ cmake_cmd.append("-DLIBCXXABI_LINK_FLAGS=-Wl,-lto_library -Wl" + liblto)
578
# There is no need to compile the lldb tests with an asanified compiler
579
# if we have a host compiler available.
580
if conf.CC():
0 commit comments