[PATCH] D120308: [compiler-rt][builtins] Fix CMake builtin target flag

Tobias Hieta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 01:23:30 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8182dba0c298: [compiler-rt][builtins] Fix CMake builtin target flag (authored by thieta).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120308/new/

https://reviews.llvm.org/D120308

Files:
  compiler-rt/cmake/Modules/BuiltinTests.cmake


Index: compiler-rt/cmake/Modules/BuiltinTests.cmake
===================================================================
--- compiler-rt/cmake/Modules/BuiltinTests.cmake
+++ compiler-rt/cmake/Modules/BuiltinTests.cmake
@@ -46,7 +46,7 @@
 
   set(TRY_COMPILE_FLAGS "${ARG_FLAGS}")
   if(CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_TARGET)
-    list(APPEND TRY_COMPILE_FLAGS "-target ${CMAKE_C_COMPILER_TARGET}")
+    list(APPEND TRY_COMPILE_FLAGS "--target=${CMAKE_C_COMPILER_TARGET}")
   endif()
 
   string(REPLACE ";" " " extra_flags "${TRY_COMPILE_FLAGS}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120308.410742.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220223/2558f7e4/attachment.bin>


More information about the llvm-commits mailing list