Timothee Cour
b8d7a98265
fix #14132 dsymutil should not be called on static libraries ( #14133 ) [backport:1.2]
2020-04-27 12:39:27 +02:00
Keithcat1
d27bc03b21
Add LTO support for most compilers and do some VCC fixes ( #14013 )
...
* Added LTO in nim.cfg, added /link in extccomp.nim and other fixes
* Fix line endings
* Fix line endings, for real this time. Almost certainly. Like, 95% certain.
* Removed /MD from extccom.nim VCC comiler
2020-04-22 23:56:43 +02:00
Hessam Mehr
bff742cd8b
Add support for zig cc as C compiler. ( #13757 )
2020-04-08 15:24:14 +02:00
cooldome
c835c8c4e7
fix #13910 ( #13917 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-04-07 19:40:14 +02:00
Timothee Cour
ab5e26c53c
fix some codegen bugs: NIM_BOOL, NIM_STATIC_ASSERT, --passc:-std=... (etc) ( #13798 )
...
* fix cgen bool D20200328T203812
* --passc:std=c++17 (etc) now works instead of silently ignored
* document caveats for NIM_NIL
2020-04-07 15:17:30 +02:00
cooldome
b3176b8817
Attempt to finish off araq cpp exceptions ( #13695 )
...
* config update
* disable a questionable test
* remove c++ exception handling IDs, new impl doesn't require it anymore
* C++ based exceptions finally work
* fixes bootstrapping problem in C++ mode
* teach GCC it's 2020 now
* more bugfixes for C++ based exception handling
* apply cooldome's patch
* another attempt to enable C++11
* bug fix
Co-authored-by: Araq <rumpf_a@web.de >
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-03-19 20:38:25 +01:00
Timothee Cour
1f2042411a
fix #13412 nim now recompiles for stdin input; SuccessX now configurable; can show whether it recompiled ( #13506 )
...
* fix #13412 nim now recompiles for stdin input; SuccessX now indicates whether it recompiled
2020-03-19 10:39:18 +01:00
Timothee Cour
60a3e036f6
fix #13633 fix koch boot crashing regression ( #13635 )
2020-03-12 11:39:10 +01:00
Clyybber
2bb0ada797
Amend fix for #13633 ( #13636 )
2020-03-12 11:20:08 +01:00
Clyybber
d84c4bba9b
Fix #13633
2020-03-12 11:01:03 +01:00
Clyybber
6b3098c378
Make listCmd honor hint:cc:off ( #13606 )
...
* Make listCmd honor hint:cc:off
* Tiny cleanup
* Tiny tiny cleanup
* VERY IMPORTANT: --hint:cc:on will overwrite --verbosity:0 :p
* Tiny cleanup
* Stupid
* Move displayProgressCC to where its required
* Tiny cleanup
2020-03-11 23:04:33 +01:00
Timothee Cour
e64f1c7ee4
koch --nim:pathto/nim boot and koch boot --hint:cc:off now work (#13516 )
...
* `koch boot --hint:cc:off` now works
* `koch --nim:pathto/nim boot` now works; code cleanup
2020-03-11 00:31:34 +01:00
genotrance
ab5d962b50
Revert "Support cross compiling from host to host ( #12859 )" ( #13591 )
...
This reverts commit e4f7656772 .
2020-03-10 15:58:27 +01:00
Clyybber
eae31a7f8d
Only print the link command when listCmd is active; fix docs ( #13603 )
2020-03-07 23:53:43 +01:00
cooldome
0f1a4ac96c
make it possible to pass linker options for vcc ( #13535 ) [backport]
2020-02-29 18:57:00 +01:00
Timothee Cour
bd90199a2f
fix #8312 --hints:off and --warnings:off now honored everywhere ( #13489 )
2020-02-26 10:26:47 +01:00
genotrance
7a2b623d2a
Fix #8648 - use parent streams to avoid hang ( #13445 )
2020-02-20 23:04:48 +01:00
Timothee Cour
5010bc1af5
fixes #13144 ( #13145 )
...
* fixup: genscript now does not copy nimbase.h but uses -I$nim/lib
2020-01-18 01:21:13 +01:00
cooldome
b4545f03de
pass platform argument only if vccexe is used ( #13078 )
...
* pass platform only if vccexe is used
* fixes #12297
2020-01-14 15:02:10 +01:00
Timothee Cour
e5ae7ceaa3
[easy] --hint 🔗 on now shows link cmd instead of nothing ( #13056 )
...
* --hint🔗 on now shows link cmd instead of nothing
* update doc for --listCmd
2020-01-07 10:38:59 +01:00
rockcavera
89570aa44b
fix #12988 ( #13022 )
...
fix #12988
2020-01-03 22:41:58 +01:00
Timothee Cour
b081166685
fixes #12735 on osx, call dsymutil for debug builds ( #12931 )
...
* fix #12735 osx: dsymutil needs to be called for debug builds
* also write dsymutil command to extraCmds in json build file
2019-12-21 20:59:08 +01:00
Neelesh Chandola
e4f7656772
Support cross compiling from host to host ( #12859 )
2019-12-09 13:39:25 +01:00
cooldome
01c7409924
Fix external file recompilation ( #12802 )
2019-12-03 16:54:42 +01:00
Clyybber
7e747d11c6
Cosmetic compiler cleanup ( #12718 )
...
* 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
2019-11-28 17:13:04 +01:00
Timothee Cour
dfe5d115fb
fixes #12663 staticRead now creates a dependency for rebuilds ( #12731 ) [backport]
...
* fix #12663 staticRead
* address comments
2019-11-25 14:44:13 +01:00
Andreas Rumpf
64e8f050e1
implemented a new localPassc pragma ( #12706 )
2019-11-22 14:20:15 +01:00
Andreas Rumpf
f7ba7c711a
added the --asm command line option for inspection of the produced assember code ( #12699 )
2019-11-21 22:53:51 +01:00
Tomohiro
8040c84615
Fix Nim specify wrong option to vccexe when vcc.options.always is set ( #12490 ) [backport]
2019-10-24 23:43:59 +02:00
Juan Carlos
4a0debfe87
Add no-ident for GCC when -d:release ( #12454 )
2019-10-18 14:13:55 +02:00
cooldome
0355c64b92
External file compilation improvement ( #12380 )
2019-10-08 08:10:55 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Araq
fd63443419
changed name mangling for generated C files
2019-09-13 19:11:48 +02:00
Andreas Rumpf
745669ac25
fixes #11758 [nobackport]
2019-07-17 20:06:10 +02:00
Araq
d55cc0888d
better run also considers the command line; fixes #11719 [feature]
2019-07-12 21:53:46 +02:00
Araq
6d125da93f
koch/nim: completion of the 'better run' feature
2019-07-12 10:48:29 +02:00
Andreas Rumpf
3d88d06b32
better run [feature] ( #11709 )
...
* 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
2019-07-11 21:36:23 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Araq
8cc9753285
fixes #11405
2019-06-05 16:26:23 +02:00
Ico Doornekamp
70fb3a93e9
list available options for --cpu, --os and --cc if the passed option is not found ( #11328 )
2019-05-25 20:22:57 +02:00
Araq
d67a9f024e
fixes #11306
2019-05-24 15:25:09 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Andreas Rumpf
651ae68567
fixes #11202
2019-05-14 12:02:26 +02:00
Andreas Rumpf
641e8f596c
Merge pull request #11201 from nim-lang/araq-fixes-11200
...
fixes 11200
2019-05-08 20:36:25 +02:00
Araq
ddad57e7a9
typo
2019-05-08 15:05:21 +02:00
Clyybber
cc28eef38e
Replace countup(x, y) with x .. y
2019-05-07 12:37:28 +02:00
Araq
7804b5c558
nicer 'CC' output messages
2019-05-06 23:58:15 +02:00
Andreas Rumpf
0121dda9ba
remove the restriction that module names need to be unique per Nimble… ( #11064 )
...
* remove the restriction that module names need to be unique per Nimble package
* make tests green again
* use the 'response' linker file also on Unix in order to fix megatest
2019-04-20 15:19:02 +02:00
Viktor Kirilov
f8146dfd84
improvements on the hot code reloading support ( #10892 )
...
* calling the "_actual" versions of functions when defined within the same module - slowdown for the snappy compression is now down from x6 to x4-x5 when HCR is ON
* dynamically linking to the runtime for VS when HCR is on - binaries are smaller
* compilerProcs are also called using the _actual direct version within the module they are defined (system)!
* updated comments & goals
* handling VS-compatible compilers on Windows in a cleaner way
* now the .dll/.so files end up in the nimcache even when --nimcache isn't explicitly stated
2019-03-23 14:48:47 +01:00
alaviss
8e12691213
compiler/extccomp: use getNimcacheDir for writing build instruction ( #10772 )
...
`conf.nimcacheDir` might be empty during build, which results in the
json build instructions being generated in the current directory. This
commit fixes the problem by using getNimcacheDir, which generates a
valid nimcacheDir should it be empty.
Fixes #10768
2019-03-04 09:09:14 +01:00