Comments (3)
More investigation. I think glslc should allow -MD
with -o -
, but only when -MT <depfile>
is also given.
from shaderc.
NEVERMIND. glslc correctly behaves the same as gcc when given -o -
with -M*
options. Here is a test that demonstrates the gcc behavior.
#!/bin/bash
setup() {
# Clean!
rm -f hello* ./-*
cat >hello.c <<-EOF
#include "hello.h"
int main(void) {
hello();
return 0;
}
EOF
cat >hello.h <<-EOF
#include <stdio.h>
static inline void
hello(void) {
printf("hello!\n");
}
EOF
}
start_test() {
test_name="$1"
echo "test $test_name ..."
}
pass() {
echo "test $test_name ... pass"
}
fail() {
echo "test $test_name ... fail"
exit 1
}
testA() {
start_test "A"
setup || fail
gcc -S -o - -MMD hello.c >/dev/null || fail
[[ -f ./-.d ]] || fail
[[ $(cat ./-.d) = "-: hello.c hello.h" ]] || fail
pass
}
testB() {
start_test "B"
setup || fail
gcc -S -o - -MMD -MF hello.o.d -MT hello.o hello.c >/dev/null || fail
[[ -f hello.o.d ]] || fail
[[ $(cat hello.o.d) = "hello.o: hello.c hello.h" ]] || fail
pass
}
testA
testB
from shaderc.
My favourite kind of bug. :-)
Thanks for the explanation. Yes, we used gcc as the model for this feature. I'm glad we are close enough to it in behaviour.
from shaderc.
Related Issues (20)
- 2023.2 Linker Build Error on Ubuntu 20.04 HOT 1
- adapt linux-mingw build for clang with mingw HOT 2
- MSVC 2017 debug build fails to compile SPIRV-Tools test/opt/fold_test.cpp: requires /bigobj flag HOT 1
- document use of Auto bindings for storage buffers. HOT 4
- work around bug in CMake 3.22.1 bug in CMP0128 policy, for compiling SPIRV-Tools tests HOT 2
- shaderc::PreprocessGlsl removes defines from the shader HOT 1
- Shader stage does matter for preprocessing
- Ninja Multi-Config generator fails - Evaluation file to be written multiple times with different content HOT 1
- Including shaderc/CMakeLists.txt as suggested in README not working HOT 4
- Linking error against spirv-tools
- Proper handling of namespace in HLSL
- Is glsl 330 actually supported ?
- Gmock not found HOT 4
- FRP this Android
- No support for source level debug info?
- SPIR_V: Generate nonsemantic shader debug information (with source) HOT 1
- shaderc not found while compiling FFMPEG HOT 1
- tests fail with updated Glslang: TestDashCapOWithDashG fails due to debug output change HOT 2
- enable Glslang tests when Shaderc tests are enabled HOT 1
- "NVVM compilation failed: 3" with mesh shaders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaderc.