We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf0ae4 commit 4e3c1f8Copy full SHA for 4e3c1f8
Packages/webxr/Editor/WebXRBuildProcessor.cs
@@ -44,6 +44,18 @@ public void OnPreprocessBuild(BuildReport report)
44
// dirty later builds with assets that may not be needed or are out of date.
45
CleanOldSettings();
46
47
+ if (report.summary.platform != BuildTarget.WebGL)
48
+ {
49
+ return;
50
+ }
51
+
52
+#if UNITY_2020_3 || UNITY_2021_1
53
+ if (!PlayerSettings.WebGL.emscriptenArgs.Contains("-std="))
54
55
+ PlayerSettings.WebGL.emscriptenArgs += " -std=c++11";
56
57
+#endif
58
59
WebXRSettings settings = null;
60
EditorBuildSettings.TryGetConfigObject<WebXRSettings>("WebXR.Settings", out settings);
61
if (settings == null)
0 commit comments