Skip to content

Commit

Permalink
Support cross compiling from host to host (#12859)
Browse files Browse the repository at this point in the history
  • Loading branch information
nc-x authored and Araq committed Dec 9, 2019
1 parent 7ebb2ba commit e4f7656
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4f7656

Please sign in to comment.