ソースを参照

Fixed shaderc build.

Branimir Karadžić 9 年 前
コミット
4603b2fd43
1 ファイル変更10 行追加13 行削除
  1. 10 13
      scripts/shaderc.lua

+ 10 - 13
scripts/shaderc.lua

@@ -47,10 +47,6 @@ project "glslang"
 
 	configuration {}
 
-	flags {
-		"Optimize",
-	}
-
 	includedirs {
 		GLSLANG,
 	}
@@ -98,19 +94,20 @@ project "shaderc"
 		path.join(GLSL_OPTIMIZER, "src"),
 	}
 
-	flags {
-		"Optimize",
-	}
-
-	removeflags {
-		-- GCC 4.9 -O2 + -fno-strict-aliasing don't work together...
-		"OptimizeSpeed",
-	}
-
 	links {
 		"bx",
 	}
 
+	configuration { "Release" }
+		flags {
+			"Optimize",
+		}
+
+		removeflags {
+			-- GCC 4.9 -O2 + -fno-strict-aliasing don't work together...
+			"OptimizeSpeed",
+		}
+
 	configuration { "vs*" }
 		includedirs {
 			path.join(GLSL_OPTIMIZER, "src/glsl/msvc"),