-
Notifications
You must be signed in to change notification settings - Fork 31
/
config.nims
25 lines (19 loc) · 953 Bytes
/
config.nims
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
switch("styleCheck", "hint")
if defined(emscripten):
# This path will only run if -d:emscripten is passed to nim.
--nimcache:tmp # Store intermediate files close by in the ./tmp dir.
--os:linux # Emscripten pretends to be linux.
--cpu:i386 # Emscripten is 32bits.
--cc:clang # Emscripten is very close to clang, so we ill replace it.
--clang.exe:emcc.bat # Replace C
--clang.linkerexe:emcc.bat # Replace C linker
--clang.cpp.exe:emcc.bat # Replace C++
--clang.cpp.linkerexe:emcc.bat # Replace C++ linker.
--listCmd # List what commands we are running so that we can debug them.
--gc:arc # GC:arc is friendlier with crazy platforms.
--exceptions:goto # Goto exceptions are friendlier with crazy platforms.
--d:noSignalHandler
# Pass this to Emscripten linker to generate html file scaffold for us.
# switch("passL", "-o wasm.html")
# #switch("--preload-file data")
# switch("--shell-file src/shell_minimal.html")