Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression - Nim compiler shows all gcc commands used when config.nims present #9982

Closed
nc-x opened this issue Dec 14, 2018 · 0 comments
Closed

Comments

@nc-x
Copy link
Contributor

nc-x commented Dec 14, 2018

create empty config.nims in nim/config folder and try to compile any file nim c filename.nim. It now shows all the gcc commands used. (Which is not shown when config.nims not present))

With config.nims -

λ nim c t2.nim
Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Hint: used config file 'C:\Nim\config\config.nims' [Conf]
Hint: system [Processing]
Hint: t2 [Processing]
gcc.exe -c  -w -mno-ms-bitfields  -IC:\Nim\lib -o C:\Users\alpha\nimcache\t2_d\t2.c.o C:\Users\alpha\nimcache\t2_d\t2.c
gcc.exe -c  -w -mno-ms-bitfields  -IC:\Nim\lib -o C:\Users\alpha\nimcache\t2_d\stdlib_system.c.o C:\Users\alpha\nimcache\t2_d\stdlib_system.c
gcc.exe -c  -w -mno-ms-bitfields  -IC:\Nim\lib -o C:\Users\alpha\nimcache\t2_d\stdlib_helpers2.c.o C:\Users\alpha\nimcache\t2_d\stdlib_helpers2.c
Hint: gcc.exe   -o C:\Users\alpha\Desktop\t2.exe  C:\Users\alpha\nimcache\t2_d\t2.c.o C:\Users\alpha\nimcache\t2_d\stdlib_system.c.o C:\Users\alpha\nimcache\t2_d\stdlib_helpers2.c.o     [Exec]
Hint: operation successful (12348 lines compiled; 1.110 sec total; 19.973MiB peakmem; Debug Build) [SuccessX]

Without config.nims

Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: t2 [Processing]
Hint:  [Link]
Hint: operation successful (12348 lines compiled; 0.220 sec total; 16.129MiB peakmem; Debug Build) [SuccessX]
@Araq Araq closed this as completed in f76bd06 Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant