From 1fbaecd2ebeae69da6e1e82716178b6a694d3839 Mon Sep 17 00:00:00 2001 From: JIAHE LIU Date: Wed, 31 Jan 2024 12:37:43 +0800 Subject: [PATCH] fix compile error by deps this glslang Signed-off-by: liujiahe (D) --- BUILD.gn | 6 +++--- build_overrides/glslang.gni | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 06fea958..c6ec8ae3 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,7 +31,7 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -import("//build_overrides/glslang.gni") +import("build_overrides/glslang.gni") # Both Chromium and Fuchsia use by default a set of warning errors # that is far too strict to compile this project. These are also @@ -284,12 +284,12 @@ template("glslang_sources_common") { } glslang_sources_common("glslang_lib_sources") { - enable_opt = true + enable_opt = false enable_hlsl = true } glslang_sources_common("glslang_sources") { - enable_opt = true + enable_opt = false enable_hlsl = true } diff --git a/build_overrides/glslang.gni b/build_overrides/glslang.gni index 003c78f0..ac122023 100755 --- a/build_overrides/glslang.gni +++ b/build_overrides/glslang.gni @@ -34,4 +34,4 @@ # These are variables that are overridable by projects that include glslang. # The path to glslang dependencies. -glslang_spirv_tools_dir = "//External/spirv-tools" +glslang_spirv_tools_dir = "External/spirv-tools"