From e5ae7ceaa30b165970db75dffff8e2df564fbba3 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 7 Jan 2020 01:38:59 -0800 Subject: [PATCH] [easy] --hint:link:on now shows link cmd instead of nothing (#13056) * --hint:link:on now shows link cmd instead of nothing * update doc for --listCmd --- .gitignore | 3 +++ compiler/extccomp.nim | 3 +-- compiler/lineinfos.nim | 2 +- doc/advopt.txt | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 34971bc3f5..a9b65bb024 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,6 @@ megatest.nim /lib/pure/*.js !/.builds/ + +# ignore debug dirs generated by dsymutil on OSX +*.dSYM diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index f8b7ac150c..de6c0ca3b5 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -835,8 +835,7 @@ template tryExceptOSErrorMessage(conf: ConfigRef; errorPrefix: string = "", body proc execLinkCmd(conf: ConfigRef; linkCmd: string) = tryExceptOSErrorMessage(conf, "invocation of external linker program failed."): - execExternalProgram(conf, linkCmd, - if optListCmd in conf.globalOptions or conf.verbosity > 1: hintExecuting else: hintLinking) + execExternalProgram(conf, linkCmd, hintLinking) proc maybeRunDsymutil(conf: ConfigRef; exe: AbsoluteFile) = when defined(osx): diff --git a/compiler/lineinfos.nim b/compiler/lineinfos.nim index 479ed2f75c..ae57090449 100644 --- a/compiler/lineinfos.nim +++ b/compiler/lineinfos.nim @@ -115,7 +115,7 @@ const hintName: "$1", hintPattern: "$1", hintExecuting: "$1", - hintLinking: "", + hintLinking: "$1", hintDependency: "$1", hintSource: "$1", hintPerformance: "$1", diff --git a/doc/advopt.txt b/doc/advopt.txt index e7626bd89f..d53acc111d 100644 --- a/doc/advopt.txt +++ b/doc/advopt.txt @@ -117,7 +117,8 @@ Advanced options: dynlib: "liblua.so.3" --dynlibOverrideAll disables the effects of the dynlib pragma - --listCmd list the commands used to execute external programs + --listCmd list the compilation commands; can be combined with: + --hint:exec:on and --hint:link:on --asm produce assembler code --parallelBuild:0|1|... perform a parallel build value = number of processors (0 for auto-detect)