Skip to content

Commit

Permalink
[easy] --hint:link:on now shows link cmd instead of nothing (#13056)
Browse files Browse the repository at this point in the history
* --hint:link:on now shows link cmd instead of nothing

* update doc for --listCmd
  • Loading branch information
timotheecour authored and Araq committed Jan 7, 2020
1 parent 569d4d1 commit e5ae7ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ megatest.nim
/lib/pure/*.js

!/.builds/

# ignore debug dirs generated by dsymutil on OSX
*.dSYM
3 changes: 1 addition & 2 deletions compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion compiler/lineinfos.nim
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const
hintName: "$1",
hintPattern: "$1",
hintExecuting: "$1",
hintLinking: "",
hintLinking: "$1",
hintDependency: "$1",
hintSource: "$1",
hintPerformance: "$1",
Expand Down
3 changes: 2 additions & 1 deletion doc/advopt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5ae7ce

Please sign in to comment.