diff options
author | genotrance <dev@genotrance.com> | 2020-03-10 09:58:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 15:58:27 +0100 |
commit | ab5d962b508d6578232d8924d7c59f388ae6d9a3 (patch) | |
tree | c061f820b43d345add32f00f2548456d2c95e523 /compiler | |
parent | 090ba1e3a390e9997f45001e18dc93ba7aa091c3 (diff) | |
download | Nim-ab5d962b508d6578232d8924d7c59f388ae6d9a3.tar.gz |
Revert "Support cross compiling from host to host (#12859)" (#13591)
This reverts commit e4f7656772657069cd3e27704d687b292d8d24ab.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index b115721df..4cc5043f8 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -411,7 +411,8 @@ proc getConfigVar(conf: ConfigRef; c: TSystemCC, suffix: string): string = else: suffix - if optCompileOnly notin conf.globalOptions: + if (conf.target.hostOS != conf.target.targetOS or conf.target.hostCPU != conf.target.targetCPU) and + optCompileOnly notin conf.globalOptions: let fullCCname = platform.CPU[conf.target.targetCPU].name & '.' & platform.OS[conf.target.targetOS].name & '.' & CC[c].name & fullSuffix |