diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-06-19 03:39:24 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-06-19 03:39:24 +0000 |
commit | c309de7c43088f55035694a13d4fa65e437a932a (patch) | |
tree | 1bd95f00cd87550a52dec2ee0a2158626430deec /lib/tsan/dd/CMakeLists.txt | |
parent | 271d42ab6a140f9bb897a49a6aa8627356890aa0 (diff) |
CMake: Stop using LLVM's custom parse_arguments. NFC
Summary:
Use CMake's cmake_parse_arguments() instead.
It's called in a slightly different way, but supports all our use cases.
It's in CMake 2.8.8, which is our minimum supported version.
CMake 3.0 doc (roughly the same. No direct link to 2.8.8 doc):
http://www.cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html?highlight=cmake_parse_arguments
Since I was already changing these calls, I changed ARCH and LIB into
ARCHS and LIBS to make it more clear that they're lists of arguments.
Reviewers: eugenis, samsonov, beanz
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10529
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/dd/CMakeLists.txt')
-rw-r--r-- | lib/tsan/dd/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/dd/CMakeLists.txt b/lib/tsan/dd/CMakeLists.txt index d7c604166..8130e09c2 100644 --- a/lib/tsan/dd/CMakeLists.txt +++ b/lib/tsan/dd/CMakeLists.txt @@ -28,7 +28,7 @@ if(CAN_TARGET_x86_64 AND UNIX AND NOT APPLE AND NOT ANDROID) add_dependencies(dd clang_rt.dd-${arch}) add_compiler_rt_object_libraries(RTDD - ARCH ${arch} + ARCHS ${arch} SOURCES ${DD_SOURCES} CFLAGS ${DD_CFLAGS}) add_compiler_rt_runtime(clang_rt.dyndd-${arch} ${arch} SHARED |