mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 16:38:33 +00:00
Support cross compiling from host to host (#12859)
This commit is contained in:
committed by
Andreas Rumpf
parent
7ebb2baa6c
commit
e4f7656772
@@ -411,8 +411,7 @@ proc getConfigVar(conf: ConfigRef; c: TSystemCC, suffix: string): string =
|
||||
else:
|
||||
suffix
|
||||
|
||||
if (conf.target.hostOS != conf.target.targetOS or conf.target.hostCPU != conf.target.targetCPU) and
|
||||
optCompileOnly notin conf.globalOptions:
|
||||
if optCompileOnly notin conf.globalOptions:
|
||||
let fullCCname = platform.CPU[conf.target.targetCPU].name & '.' &
|
||||
platform.OS[conf.target.targetOS].name & '.' &
|
||||
CC[c].name & fullSuffix
|
||||
|
||||
Reference in New Issue
Block a user