diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2017-01-19 18:46:11 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2017-01-19 18:46:11 +0000 |
commit | e1c28cdba6f970815744f1a24ffed5a7b5709ee9 (patch) | |
tree | 8e8bb1055a5ebfab4b741416010b4abd9defedbb /cmake | |
parent | 90a89f08a361a74276ffbb3d232301fe6fb6363f (diff) |
[Builtin] [ARM] Update CMake to support the build of armv6m
Summary:
Setting -DCOMPILER_RT_TEST_TARGET_TRIPLE=armv6m-none-eabi will enable the build of builtin functions ARMv6m.
Currently, only those asms that support armv6m are added.
TODO:All asm sin ARM_EABI_Sources are ported for thumb1 so Thumb1_EABI_Sources will be deprecated.
Reviewers: rengolin, compnerd
Reviewed By: compnerd
Subscribers: aemerson, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D28463
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@292504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/base-config-ix.cmake | 1 | ||||
-rw-r--r-- | cmake/builtin-config-ix.cmake | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmake/base-config-ix.cmake b/cmake/base-config-ix.cmake index 71d14992e..6f9f15139 100644 --- a/cmake/base-config-ix.cmake +++ b/cmake/base-config-ix.cmake @@ -172,6 +172,7 @@ macro(test_targets) else() test_target_arch(arm "" "-march=armv7-a" "-mfloat-abi=soft") test_target_arch(armhf "" "-march=armv7-a" "-mfloat-abi=hard") + test_target_arch(armv6m "" "-march=armv6m" "-mfloat-abi=soft") endif() elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "aarch32") test_target_arch(aarch32 "" "-march=armv8-a") diff --git a/cmake/builtin-config-ix.cmake b/cmake/builtin-config-ix.cmake index 8cb4ca1a2..dc2ec1694 100644 --- a/cmake/builtin-config-ix.cmake +++ b/cmake/builtin-config-ix.cmake @@ -24,7 +24,7 @@ int foo(int x, int y) { set(ARM64 aarch64) -set(ARM32 arm armhf) +set(ARM32 arm armhf armv6m) set(X86 i386 i686) set(X86_64 x86_64) set(MIPS32 mips mipsel) |