[llvm-branch-commits] [compiler-rt] 377ba7b - [compiler-rt][AArch64] Put outline atomic helpers into dedicated dir.

Pavel Iliin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 6 16:34:20 PST 2020


Author: Pavel Iliin
Date: 2020-12-07T00:28:09Z
New Revision: 377ba7be933fe5012a0b096c6995f2c1d7776729

URL: https://github.com/llvm/llvm-project/commit/377ba7be933fe5012a0b096c6995f2c1d7776729
DIFF: https://github.com/llvm/llvm-project/commit/377ba7be933fe5012a0b096c6995f2c1d7776729.diff

LOG: [compiler-rt][AArch64] Put outline atomic helpers into dedicated dir.

Differential Revision: https://reviews.llvm.org/D92724

Added: 
    

Modified: 
    compiler-rt/lib/builtins/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 99cdeac13a66..8bb367e6ce41 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -513,12 +513,14 @@ if(NOT ANDROID)
 endif()
 append_list_if(COMPILER_RT_HAS_ASM_LSE -DHAS_ASM_LSE CUSTOM_FLAGS)
 string(REPLACE " " "\t" CUSTOM_FLAGS "${CUSTOM_FLAGS}")
+set(OA_HELPERS_DIR "${CMAKE_CURRENT_BINARY_DIR}/outline_atomic_helpers.dir")
+file(MAKE_DIRECTORY ${OA_HELPERS_DIR})
 
 foreach(pat cas swp ldadd ldclr ldeor ldset)
   foreach(size 1 2 4 8 16)
     foreach(model 1 2 3 4)
       if(pat STREQUAL "cas" OR NOT size STREQUAL "16")
-        set(helper_asm outline_atomic_${pat}${size}_${model}.S)
+        set(helper_asm ${OA_HELPERS_DIR}/outline_atomic_${pat}${size}_${model}.S)
         add_custom_command(
           OUTPUT ${helper_asm}
           COMMAND ${CMAKE_C_COMPILER} -E ${CUSTOM_FLAGS} -DL_${pat} -DSIZE=${size} -DMODEL=${model}


        


More information about the llvm-branch-commits mailing list