summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common
diff options
context:
space:
mode:
authorAlexander Richardson <arichardson.kde@gmail.com>2019-07-27 12:30:15 +0000
committerAlexander Richardson <arichardson.kde@gmail.com>2019-07-27 12:30:15 +0000
commit33ed658ca8e891f2b8f753429e7257630e09afb2 (patch)
tree3be8a46088b8c0eed510d22193b224e5dc1f66da /lib/sanitizer_common
parent214bcf1296cc2d1b81c45e1c0b938be8174fc7dd (diff)
downloadcompiler-rt-33ed658ca8e891f2b8f753429e7257630e09afb2.tar.gz
[compiler-rt] Fix running tests on macOS when XCode is not installed
Summary: If XCode is not installed, `xcodebuild -version -sdk macosx Path` will give xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance In this case the variable OSX_SYSROOT will be empty and OSX_SYSROOT_FLAG is set to "-isysroot" (without a path). This then causes the CompilerRTUnitTestCheckCxx target failed to for me because "${COMPILER_RT_TEST_COMPILER} ${OSX_SYSROOT_FLAG} -E" expanded to "clang -isysroot -E". This results in a warning "sysroot -E does not exist" and the target fails to run because the C++ headers cannot be found. Reviewers: beanz, kubamracek Reviewed By: beanz Subscribers: dberris, mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D65323 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common')
0 files changed, 0 insertions, 0 deletions