From e4f7656772657069cd3e27704d687b292d8d24ab Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Mon, 9 Dec 2019 18:09:25 +0530 Subject: [PATCH] Support cross compiling from host to host (#12859) --- compiler/extccomp.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index d2d86bf580..69b97177a6 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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