[llvm-branch-commits] [llvm] e19d525 - [gn build] fix up arm64 builtin sources a bit

Nico Weber via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 10 13:27:57 PST 2020


Author: Nico Weber
Date: 2020-12-10T16:22:48-05:00
New Revision: e19d5258461ce7838e4be6973ba519d250c000f1

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

LOG: [gn build] fix up arm64 builtin sources a bit

The fp_mode.c removal is done by filter_builtin_sources in the cmake build.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
index e7b532f57dab..4f0738292b2c 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
@@ -427,7 +427,11 @@ static_library("builtins") {
   }
 
   if (current_cpu == "arm64") {
-    sources += [ "aarch64/fp_mode.c" ]
+    sources -= [ "fp_mode.c" ]
+    sources += [
+      "cpu_model.c",
+      "aarch64/fp_mode.c",
+    ]
     if (current_os == "mingw") {
       sources += [ "aarch64/chkstk.S" ]
     }


        


More information about the llvm-branch-commits mailing list