OSDN Git Service

Attempt to fix the MacOS build
authorAlexis Hetu <sugoi@google.com>
Wed, 2 Aug 2017 21:00:55 +0000 (17:00 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 2 Aug 2017 21:03:28 +0000 (21:03 +0000)
On the mac_optional_gpu_tests_rel bot, a -Wall flag cancels out the
-Wno-unused-local-typedef warning suppression and causes the build
to fail. Attempting to reorder the configs order to solve the issue.

Change-Id: Ic790f5cb7803be4749616d826e1368ef76e2c889
Reviewed-on: https://swiftshader-review.googlesource.com/11212
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
src/swiftshader.gni

index 333ef80..c4292e3 100644 (file)
@@ -36,22 +36,22 @@ configs_to_add += [
 
 template("swiftshader_source_set") {
   source_set(target_name) {
+    configs -= configs_to_delete
+    configs += configs_to_add
     forward_variables_from(invoker, "*", [ "configs" ])
     if (defined(invoker.configs)) {
       configs += invoker.configs
     }
-    configs -= configs_to_delete
-    configs += configs_to_add
   }
 }
 
 template("swiftshader_shared_library") {
   shared_library(target_name) {
+    configs -= configs_to_delete
+    configs += configs_to_add
     forward_variables_from(invoker, "*", [ "configs" ])
     if (defined(invoker.configs)) {
       configs += invoker.configs
     }
-    configs -= configs_to_delete
-    configs += configs_to_add
   }
 }