Backed out changeset 97c081de7aa5 (bug 1698156) for causing bustages.

CLOSED TREE
This commit is contained in:
Alexandru Michis 2021-03-24 20:52:42 +02:00
parent 73ebbcd9ed
commit e41b3fd042

View File

@ -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);
}