summary refs log tree commit diff stats
path: root/compiler/commands.nim
Commit message (Collapse)AuthorAgeFilesLines
* remove the nilChecks switch; refs #11570Araq2020-04-201-2/+2
|
* new feature: ability to turn specific warnings to errorsAndreas Rumpf2020-04-041-5/+12
|
* sourcemaps for the JS codegen (#7508)Alexander Ivanov2020-04-031-0/+4
|
* stacktraces can now show custom runtime msgs per frame (#13351)Timothee Cour2020-03-301-0/+2
| | | | | | | | * stacktraces can now show custom runtime msgs * improve tests/stdlib/tstackframes.nim * fix test for --gc:arc * test --stacktraceMsgs:on and --stacktraceMsgs:off * --stacktracemsgs:off by default
* '.push raises: []' now also affects proc types (#13776)Andreas Rumpf2020-03-291-0/+1
| | | | | | | | | * '.push raises: []' now also affects proc types * fixes the regression * less disruptive bugfix * another attempt
* new feature: --staticBoundChecks:on to enforce static array index checking ↵Andreas Rumpf2020-03-181-0/+2
| | | | (#10965)
* catchable defects (#13626)Andreas Rumpf2020-03-121-0/+4
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly
* fixes #13519Araq2020-03-111-2/+4
|
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-041-0/+2
| | | | | | | | | | | | | | * ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
* properly handle note override logic/verbosity/config/cmdline using ↵Timothee Cour2020-02-271-21/+20
| | | | modifiedyNotes, cmdlineNotes
* remove isCmdLine; use passCmd1Timothee Cour2020-02-271-2/+2
|
* correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in orderTimothee Cour2020-02-271-0/+6
|
* only enable linenoise for -d:nimUseLinenoise (#13478)Timothee Cour2020-02-241-2/+3
| | | | | | * only enable linenoise for -d:nimUseLinenoise * fixup
* relativePath("foo", "foo") is now ".", not "" (#13452)Timothee Cour2020-02-221-0/+2
|
* fix #13374 `nim c -r -` now generates $nimcache/stdinfile (#13380) [backport]Timothee Cour2020-02-111-2/+10
|
* fix #13150 `nim doc --project` now works reliably (#13223)Timothee Cour2020-02-061-0/+2
| | | | | | | | | | * fix #13150 `nim doc --project` works with duplicate names and with imports below main project file * add to help; fixup after #13212 isRelativeTo got merged * fix test tests/compilerapi/tcompilerapi.nim * remove nimblePkg field; compute on the fly instead * kochdocs: compiler docs now under compiler/ * --docRoot now has smart default: best among @pkg, @path
* make goto based exceptions available for 'nim cpp' (#13244)Andreas Rumpf2020-01-251-6/+4
| | | | | * make goto based exceptions available for 'nim cpp' * optimize seq.add to be comparable to C++'s emplace_back
* VM: allow overriding MaxLoopIterations without rebuilding nim (#13233)Timothee Cour2020-01-231-0/+3
|
* --styleCheck:hint now works (#13055)Timothee Cour2020-01-071-1/+1
|
* --exception:goto switch for deterministic exception handling (#12977)Andreas Rumpf2020-01-011-1/+26
| | | | | This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior. Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-171-2/+13
| | | | | | | | | | | | | * first implementation of the =trace and =dispose hooks for the cycle collector * a cycle collector for ARC: progress * manual: the .acyclic pragma is a thing once again * gcbench: adaptations for --gc:arc * enable valgrind tests for the strutils tests * testament: better valgrind support * ARC refactoring: growable jumpstacks * ARC cycle detector: non-recursive algorithm * moved and renamed core/ files back to system/ * refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
* Path substitution for --out and --outdir (#12796)genotrance2019-12-031-3/+3
| | | | | * Enable pathSubs for --out and --outDir * Cleanup
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-11/+11
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* Substitute $nimbleDir in --path flags (#12750)genotrance2019-11-281-2/+3
|
* added the --asm command line option for inspection of the produced assember ↵Andreas Rumpf2019-11-211-0/+2
| | | | code (#12699)
* .cursor implementation (#12637)Andreas Rumpf2019-11-121-11/+11
| | | | | | | | | | | * cursors: first implementation * added currently failing test * .cursor works for doubly linked lists * make -d:useMalloc work again * added code to nil out refs in a destructor * it's now called --gc:arc * renderer.nim: render nkBreakState properly * make simple closure iterators work without leaking
* add --clearNimblePath; fixes #12601 (#12609)Andy Davidoff2019-11-061-0/+3
|
* implement the --useVersion emulation featureAndreas Rumpf2019-11-041-1/+4
|
* Fixes #12536 (#12568) [backport]Tomohiro2019-11-021-14/+12
|
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-301-4/+17
|
* first implementation of the new --seqsv2 switchAraq2019-10-201-0/+5
|
* refactoring: use the new strings and seqs when optSeqDestructors is activeAraq2019-10-201-0/+1
|
* refactoring: --newruntime consists of 3 different switchesAraq2019-10-201-1/+3
|
* added cpuTime to VM (#12346)Ico Doornekamp2019-10-041-0/+2
| | | | | | * added cpuTime to VM * Hide VM-time cpuTime() behind --benchmarkVM flag
* introduce --oldgensym:on rather than --useVersionAndreas Rumpf2019-09-031-3/+3
|
* gc:destructors progressAraq2019-09-011-24/+25
|
* Remove ENDB (#12095)Clyybber2019-08-311-15/+9
|
* new gensym handling (#11985)Andreas Rumpf2019-08-231-0/+9
| | | | | | | | | | | * new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
* Lock semchecked ast for macros (#11883) [bugfix]Arne Döring2019-08-081-7/+13
| | | | | | * reject to modify type checked AST * add flag to back out * Introduce legacy feature set.
* Incremental compilation (IC): Improvements (#11881)Andreas Rumpf2019-08-081-1/+3
| | | | | | | | | | | | | | | | | | | * IC: C codegen is aware of IC * manual: minor change to make VSCode's RST plugin render it properly * IC: minor refactoring * testament: code refactorings * rodutils: removed dead code * IC: always build the compiler with the IC feature * IC: C codegen improvements * IC: implement the undocumented -d:nimMustCache option for testing purposes * IC: added first basic tests * IC: extensive testing of the deserialization feature * testament: refactoring; better IC tests * IC: removes 'nimMustCache' flag; readonly does the same * testament: minor refactoring * update Nimble version * testament: removed dead code and imports; IC: added simple test * IC: progress
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-1/+1
|
* newruntime: refchecks:on|off switchAraq2019-07-121-0/+2
|
* better run [feature] (#11709)Andreas Rumpf2019-07-111-1/+1
| | | | | | | * track the checksums of all involved Nim files for smarter 'nim c -r' recompiles * don't recompile unless necessary for 'nim c -r' [feature] * [feature] koch boot uses a two step process in order to free the RAM before the GCC/Clang invocations * fixes a serious regression
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-3/+3
| | | | --styleCheck:error
* [bugfix] fix #11484, acknowledge 'danger' flag (#11486)Miran2019-07-031-1/+2
|
* new compiler feature: --expandMacroAraq2019-05-291-1/+4
|
* list available options for --cpu, --os and --cc if the passed option is not ↵Ico Doornekamp2019-05-251-2/+6
| | | | found (#11328)
* fixes #11294Araq2019-05-241-1/+3
|
* render urls correctly (#11022)Andy Davidoff2019-04-141-2/+2
|
* destructors: we are cooking nowAraq2019-04-061-6/+7
|