OSDN Git Service

Fixed build on Arm 64
authorAlexis Hetu <sugoi@google.com>
Tue, 15 Jan 2019 21:14:38 +0000 (16:14 -0500)
committerAlexis Hétu <sugoi@google.com>
Wed, 16 Jan 2019 14:50:57 +0000 (14:50 +0000)
A few warnings were causing build errors on Arm 64.
Since we don't want to modify the LLVM code itself,
the warnings in the LLVM code are now suppressed.

Bug chromium:922089

Change-Id: I7e8827cda5117e8817342930dca8d7b7f90d339c
Reviewed-on: https://swiftshader-review.googlesource.com/c/23628
Tested-by: Alexis Hétu <sugoi@google.com>
Tested-by: Corentin Wallez <cwallez@google.com>
Reviewed-by: Corentin Wallez <cwallez@google.com>
src/Reactor/BUILD.gn
third_party/llvm-7.0/BUILD.gn

index c983c43..be5e505 100644 (file)
@@ -170,6 +170,9 @@ config("swiftshader_reactor_private_config") {
     ]
   } else {
     cflags = [ "-Wno-unused-local-typedef" ]
+    if(target_cpu == "arm64") {\r
+      cflags += [ "-Wno-defaulted-function-deleted" ]\r
+    }\r
     defines = [
       "__STDC_CONSTANT_MACROS",
       "__STDC_LIMIT_MACROS",
index 4ccc6d1..f0b3dc8 100644 (file)
@@ -61,6 +61,10 @@ config("swiftshader_llvm_private_config") {
     }
   }
 
+  if(target_cpu == "arm64") {\r
+    cflags += [ "-Wno-defaulted-function-deleted" ]\r
+  }\r
+\r
   cflags += [
     "-Wno-attributes",
     "-Wno-deprecated-declarations",