From b2e329caa342105b786751ac0dfd356003dd9477 Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Fri, 2 Sep 2022 14:46:10 -0500 Subject: [PATCH] [Web][Emscripten] Update EMCC C++ standard to C++17 As a follow-up to https://github.com/apache/tvm/pull/12337, updating the EMCC flags from `-std=c++14` to `-std=c++17`. --- web/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/Makefile b/web/Makefile index 34a1b8172484..d6adc94170fc 100644 --- a/web/Makefile +++ b/web/Makefile @@ -26,7 +26,7 @@ all: dist/wasm/tvmjs_runtime.wasm dist/wasm/tvmjs_runtime.wasi.js EMCC = emcc -EMCC_CFLAGS = $(INCLUDE_FLAGS) -O3 -std=c++14 -Wno-ignored-attributes --no-entry \ +EMCC_CFLAGS = $(INCLUDE_FLAGS) -O3 -std=c++17 -Wno-ignored-attributes --no-entry \ -s ALLOW_MEMORY_GROWTH=1 -s STANDALONE_WASM=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 EMCC_LDFLAGS = --pre-js emcc/preload.js