summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fix #14364 (#14372) [backport:1.2]Ștefan Talpalaru2020-05-181-0/+1
| | | | Turn on the TLS emulation when using Boehm, since it doesn't scan the real TLS.
* fix #14174 do not collapse pragma inside runnableExamples (#14385)Timothee Cour2020-05-182-20/+21
|
* fix #14369 (#14386)cooldome2020-05-181-0/+1
| | | | | * fix #14369 * empty commit
* fix #12293 findNimStdLibCompileTime should not break with nimble install ↵Timothee Cour2020-05-181-2/+5
| | | | | | | compiler (#14334) * fix #12293 findNimStdLibCompileTime should not break with nimble install compiler * address comment to unblock PR
* fix some issues with --backend (#14363)Timothee Cour2020-05-166-56/+73
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* New "ping-pong" DFA (#14322)Clyybber2020-05-152-73/+60
| | | | | | | | | | | | | | | | | * New ping-pong analysis * Add testcase for #13456 * Remove debugging leftover * Unquote "unstructured controlflow" * Fix typo * Fix exponential complexity in edge cases * Add sanity testcase * Fix
* Improve nimeval, changes some defaults (#14351)PMunch2020-05-151-3/+7
| | | | | | | | | | * Improve nimeval, changes some defaults This improves nimeval to make it easier to use NimScript as an embedded scripting languages. It does change some of the defaults, so in case anything used the old version and depended on the old behaviour these would have to be changed. * Remove dependency on nimhcr for nimscript
* fix #14350, cstrings in JS init as null (#14355)hlaaftana2020-05-151-3/+1
| | | | * fix #14350, cstrings in JS init as null
* fixes #14340Araq2020-05-141-4/+4
|
* fix #14333 (#14336)cooldome2020-05-131-4/+2
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #13998 [backport:1.2]Andreas Rumpf2020-05-131-1/+1
|
* fixes #13104 [backport]Andreas Rumpf2020-05-131-0/+3
|
* no more guessing where compiler msgs came from (#14317)Timothee Cour2020-05-132-19/+37
|
* Allow let to not have value when using importc (#14258)PMunch2020-05-121-2/+3
| | | | | | | | | | | | | | * Allow let to not have value when using importc This allows a let statement with the `{.importc.}` pragma to not be initialised with a value. This allows us to declare C constants as Nim lets without putting the value in the Nim code (which can lead to errors, and requires us to go looking for the value). Fixes #14253 * Proper fix and documentation + changelog entry * Improve testcase with one from timotheecour * Add test to verify it working with macros
* fix detecting closure env for nested asts (#14326)b3liever2020-05-121-3/+3
| | | Co-authored-by: b3liever <b3liever@yandex.com>
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-122-3/+8
|
* fixes #13881Andreas Rumpf2020-05-121-0/+1
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* fix one motr dicriminator bugcooldome2020-05-121-2/+7
|
* fix testcooldome2020-05-121-3/+5
|
* fix #14312cooldome2020-05-121-6/+9
|
* properly fixes #13758 so that `import std/macros` stays legal (#14291)Timothee Cour2020-05-121-1/+1
| | | | | * properly fix https://github.com/nim-lang/Nim/issues/12389 * use --lib:lib in koch.nim.cfg instead * third time is the charm
* fix #14219 (#14225)cooldome2020-05-111-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Make --backend:cpp|js work for :test: code-blocks as well (#14306)Kaushal Modi2020-05-111-1/+2
| | | | | | | | | Continues https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322 Ref: - https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322#commitcomment-39087584 - https://github.com/nim-lang/Nim/pull/14278 Fixes https://github.com/nim-lang/Nim/issues/13129 .
* small refactoring (#14303)b3liever2020-05-111-3/+4
| | | Co-authored-by: Antonis <b3liever@yandex.com>
* fix #14294 (#14301)cooldome2020-05-111-1/+6
| | | | | | | * fix #14294 * fix orc as well Co-authored-by: cooldome <ariabushenko@bk.ru>
* do not track 'raise Defect' in the .raises: [] clause anymore (#14298)Andreas Rumpf2020-05-112-1/+15
| | | | | | | | | * do not track 'raise Defect' in the .raises: [] clause anymore * --panics:on maps 'raise Defect' to an unrecoverable fatal error * make tests green again * update the documentation too
* better error messageAntonis2020-05-111-1/+1
|
* fix closure env checkAntonis2020-05-111-1/+2
|
* refactor: renamed readme to readme.md (#14283)Jovial Joe Jayarson2020-05-112-5/+7
|
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-1115-86/+131
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* `nim doc -r main` and `nim rst2html -r main` now call openDefaultBrowser ↵Timothee Cour2020-05-101-4/+15
| | | | (#14285)
* Fix #14269 (#14286)Clyybber2020-05-091-1/+2
|
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-081-3/+5
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* fix root cause of https://github.com/dom96/choosenim/issues/193; ↵Andreas Rumpf2020-05-081-3/+2
|\ | | | | | | config/config.nims should get installed (#14267)
| * fix root cause of https://github.com/dom96/choosenim/issues/193; ↵Timothee Cour2020-05-071-3/+2
| | | | | | | | config/config.nims should get installed
* | fix https://github.com/nim-lang/Nim/issues/14275 querySetting(nimcacheDir) ↵Timothee Cour2020-05-081-1/+1
| | | | | | | | works even if implicitly set (#14277)
* | make `from` an operator (#14241)hlaaftana2020-05-083-5/+7
|/
* fix #14243 (#14257)cooldome2020-05-071-5/+9
| | | | | * fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
* Fix the DFA for "unstructured controlflow" (#14263)Clyybber2020-05-072-80/+117
| | | | | * Fix the DFA for "unstructured controlflow" * Add testcase from #14233
* fix #14236 (#14250)cooldome2020-05-071-3/+3
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #14244 (#14248)cooldome2020-05-061-6/+6
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* added a new feature: --cc:env so that you can use any C compiler as long as ↵Andreas Rumpf2020-05-062-13/+27
| | | | it works like GCC
* cleanup the CC setting, only leave in there what is at least semi-officially ↵Andreas Rumpf2020-05-062-122/+2
| | | | supported
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-052-31/+38
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* fixes #14209 [backport:1.2] (#14213)Andreas Rumpf2020-05-052-0/+31
| | | | * fixes #14209 [backport:1.2] * improve stability
* vcc fix (#14222)cooldome2020-05-041-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix https://github.com/timotheecour/Nim/issues/152: avoid writing spurious ↵Timothee Cour2020-05-042-6/+3
| | | | | | | | | `^[[0m` to stderr when callStyledWriteLineStderr not called (#14214) * fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -` * resetAttributes not even needed, already handled in styledWriteLine * simplify tests in tests/trunner.nim thanks to this fix
* `echo cmd | nim r - -arg1 -arg2` now works (#14210)Timothee Cour2020-05-041-1/+1
|
* destructors: don't produce stupid code for 'cast' (#14208) [backport:1.2]Andreas Rumpf2020-05-042-4/+8
| | | | | * destructors: don't produce stupid code for 'cast' * fixes #14207
* fixes #14136 (#14198)Andreas Rumpf2020-05-031-3/+5
|