Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
nimgl/config.nims
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (24 sloc)
1.26 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This config.nims is used as an example and to test the examples, this definitions will not be | |
# applied to your application if you don't manually copy this file. | |
when 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:wasm32 # Emscripten is 32bits. | |
--cc:clang # Emscripten is very close to clang, so we ill replace it. | |
when defined(windows): | |
--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. | |
else: | |
--clang.exe:emcc # Replace C | |
--clang.linkerexe:emcc # Replace C linker | |
--clang.cpp.exe:emcc # Replace C++ | |
--clang.cpp.linkerexe:emcc # 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. | |
--define:useMalloc | |
# Pass this to Emscripten linker to generate html file scaffold for us. | |
switch("passL", "-o examples/web/index.html -s USE_WEBGL2=1 --shell-file examples/web/shell_minimal.html") |