aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2019-04-26 13:22:39 +0000
committerDan Liew <dan@su-root.co.uk>2019-04-26 13:22:39 +0000
commit9f59704a5d601d8e1631a1ccf96f28a6b1ce3388 (patch)
treeebfd661b11930495597d793b22e6e91e8722c62b /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h
parent2ff59e554b41fd47341e4f80a5485f90c6221b2b (diff)
downloadllvm-9f59704a5d601d8e1631a1ccf96f28a6b1ce3388.zip
llvm-9f59704a5d601d8e1631a1ccf96f28a6b1ce3388.tar.gz
llvm-9f59704a5d601d8e1631a1ccf96f28a6b1ce3388.tar.bz2
[CMake] Fix the value of `config.target_cflags` for non-macOS Apple
platforms. The main problem here is that `-*-version_min=` was not being passed to the compiler when building test cases. This can cause problems when testing on devices running older OSs because Clang would previously assume the minimum deployment target is the the latest OS in the SDK which could be much newer than what the device is running. Previously the generated value looked like this: `-arch arm64 -isysroot <path_to_xcode>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk` With this change it now looks like: `-arch arm64 -stdlib=libc++ -miphoneos-version-min=8.0 -isysroot <path_to_xcode>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk` This mirrors the setting of `config.target_cflags` on macOS. This change is made for ASan, LibFuzzer, TSan, and UBSan. To implement this a new `get_test_cflags_for_apple_platform()` function has been added that when given an Apple platform name and architecture returns a string containing the C compiler flags to use when building tests. This also calls a new helper function `is_valid_apple_platform()` that validates Apple platform names. rdar://problem/50124489 Differential Revision: https://reviews.llvm.org/D58578 llvm-svn: 359305
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions