Skip to content

Commit f550650

Browse files
committed
use gcc for wasm
1 parent f4228e1 commit f550650

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

xmake/modules/package/manager/conan/v2/install_package.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,10 @@ function _conan_generate_compiler_profile(profile, configs, opt)
199199
local emscripten_cmakefile = find_file("Emscripten.cmake", path.join(emsdk.emscripten, "cmake/Modules/Platform"))
200200
assert(emscripten_cmakefile, "Emscripten.cmake not found!")
201201

202-
profile:print("compiler=clang")
203-
local version = _conan_get_compiler_version("clang")
204-
if version then
205-
profile:print("compiler.version=" .. version)
206-
end
202+
profile:print("compiler=gcc")
203+
profile:print("compiler.cppstd=gnu17")
204+
profile:print("compiler.libcxx=libstdc++11")
205+
profile:print("compiler.version=12")
207206

208207
conf = {}
209208
conf["tools.build:compiler_executables"] = "{'c':'emcc', 'cpp':'em++', 'ar':'emar', 'ranlib':'emranlib'}"

0 commit comments

Comments
 (0)