mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset 97c081de7aa5 (bug 1698156) for causing bustages.
CLOSED TREE
This commit is contained in:
parent
73ebbcd9ed
commit
e41b3fd042
@ -73,8 +73,6 @@ fn translate_shader(shader_key: &str, shader_dir: &str) {
|
||||
std::fs::write(&imp_name, imported).unwrap();
|
||||
|
||||
let mut build = cc::Build::new();
|
||||
// Use SWGLPP target to avoid pulling CFLAGS/CXXFLAGS.
|
||||
build.target("SWGLPP");
|
||||
build.no_default_flags(true);
|
||||
if build.get_compiler().is_like_msvc() {
|
||||
build.flag("/EP").flag("/clang:-undef");
|
||||
@ -122,12 +120,6 @@ fn main() {
|
||||
|
||||
shaders.sort();
|
||||
|
||||
// We need to ensure that the C preprocessor does not pull compiler flags from
|
||||
// the host or target environment. Set up a SWGLPP target with empty flags to
|
||||
// work around this.
|
||||
std::env::set_var("CFLAGS_SWGLPP", "");
|
||||
std::env::set_var("CXXFLAGS_SWGLPP", "");
|
||||
|
||||
for shader in &shaders {
|
||||
translate_shader(shader, &shader_dir);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user