Skip to content

Commit

Permalink
default to threads:on (#9878)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Mar 3, 2019
1 parent 792dfac commit 6d7656c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ when not defined(leanCompiler):
if conf.outFile.isEmpty:
conf.outFile = RelativeFile(conf.projectName & ".js")

# These are not friends with js backend
excl(conf.globalOptions, optThreads)
excl(conf.globalOptions, optThreadAnalysis)

#incl(gGlobalOptions, optSafeCode)
setTarget(graph.config.target, osJS, cpuJS)
#initDefines()
Expand Down
2 changes: 2 additions & 0 deletions config/nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ cc = gcc
# additional options always passed to the compiler:
--parallel_build: "0" # 0 to auto-detect number of processors

threads:on

hint[LineTooLong]=off
#hint[XDeclaredButNotUsed]=off

Expand Down

0 comments on commit 6d7656c

Please sign in to comment.