File: gn-hpp11.patch

package info (click to toggle)
chromium 142.0.7444.175-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,303,984 kB
  • sloc: cpp: 35,488,370; ansic: 7,479,680; javascript: 4,259,373; python: 1,466,844; xml: 757,444; asm: 710,716; pascal: 187,980; sh: 89,247; perl: 88,690; objc: 79,984; sql: 56,984; cs: 42,192; fortran: 24,137; makefile: 22,919; tcl: 15,277; php: 14,018; yacc: 9,005; ruby: 7,553; awk: 3,720; lisp: 3,096; lex: 1,330; ada: 727; jsp: 228; sed: 36
file content (18 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
work around the following error:

ERROR at //third_party/glslang/src/BUILD.gn:146:7: Only source, header, and object files belong in the sources of a source_set. //third_party/glslang/src/SPIRV/spirv.hpp11 is not one of the valid types.
      "SPIRV/spirv.hpp11",

Newer gn added .hpp11 support (via
https://gn.issues.chromium.org/issues/42440217 ), but bookworm's gn doesn't.

--- a/third_party/glslang/src/BUILD.gn
+++ b/third_party/glslang/src/BUILD.gn
@@ -143,7 +143,6 @@ template("glslang_sources_common") {
       "SPIRV/doc.cpp",
       "SPIRV/doc.h",
       "SPIRV/hex_float.h",
-      "SPIRV/spirv.hpp11",
       "SPIRV/spvIR.h",
       "SPIRV/spvUtil.h",
       "glslang/GenericCodeGen/CodeGen.cpp",