Web: Turn off bracket-style attributes, reflection, and IO mapping.
diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp
index d1f80b5..17561a2 100644
--- a/StandAlone/StandAlone.cpp
+++ b/StandAlone/StandAlone.cpp
@@ -1071,11 +1071,13 @@
if (! (Options & EOptionOutputPreprocessed) && ! program.link(messages))
LinkFailed = true;
+#ifndef GLSLANG_WEB
// Map IO
if (Options & EOptionSpv) {
if (!program.mapIO())
LinkFailed = true;
}
+#endif
// Report
if (! (Options & EOptionSuppressInfolog) &&
@@ -1084,11 +1086,13 @@
PutsIfNonEmpty(program.getInfoDebugLog());
}
+#ifndef GLSLANG_WEB
// Reflect
if (Options & EOptionDumpReflection) {
program.buildReflection(ReflectOptions);
program.dumpReflection();
}
+#endif
// Dump SPIR-V
if (Options & EOptionSpv) {