Support cross compiling from host to host (#12859)
This commit is contained in:
parent
7ebb2baa6c
commit
e4f7656772
1 changed files with 1 additions and 2 deletions
|
|
@ -411,8 +411,7 @@ proc getConfigVar(conf: ConfigRef; c: TSystemCC, suffix: string): string =
|
||||||
else:
|
else:
|
||||||
suffix
|
suffix
|
||||||
|
|
||||||
if (conf.target.hostOS != conf.target.targetOS or conf.target.hostCPU != conf.target.targetCPU) and
|
if optCompileOnly notin conf.globalOptions:
|
||||||
optCompileOnly notin conf.globalOptions:
|
|
||||||
let fullCCname = platform.CPU[conf.target.targetCPU].name & '.' &
|
let fullCCname = platform.CPU[conf.target.targetCPU].name & '.' &
|
||||||
platform.OS[conf.target.targetOS].name & '.' &
|
platform.OS[conf.target.targetOS].name & '.' &
|
||||||
CC[c].name & fullSuffix
|
CC[c].name & fullSuffix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue