Debian Codegraph @

thirdparty/glslang/patches/0001-apple-disable-absolute-paths.patch

raw
1 diff --git a/thirdparty/glslang/glslang/Include/InfoSink.h b/thirdparty/glslang/glslang/Include/InfoSink.h
2 index 23f495dcb7..137ede8510 100644
3 --- a/thirdparty/glslang/glslang/Include/InfoSink.h
4 +++ b/thirdparty/glslang/glslang/Include/InfoSink.h
5 @@ -36,7 +36,7 @@
6 #define _INFOSINK_INCLUDED_
7
8 #include "../Include/Common.h"
9 -#include <filesystem>
10 +//#include <filesystem>
11 #include <cmath>
12
13 namespace glslang {
14 @@ -101,14 +101,14 @@ public:
15 snprintf(locText, maxSize, ":%d", loc.line);
16
17 if(loc.getFilename() == nullptr && shaderFileName != nullptr && absolute) {
18 - append(std::filesystem::absolute(shaderFileName).string());
19 + //append(std::filesystem::absolute(shaderFileName).string());
20 } else {
21 std::string location = loc.getStringNameOrNum(false);
22 - if (absolute) {
23 - append(std::filesystem::absolute(location).string());
24 - } else {
25 + //if (absolute) {
26 + // append(std::filesystem::absolute(location).string());
27 + //} else {
28 append(location);
29 - }
30 + //}
31 }
32
33 append(locText);