diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index d2d86bf580a63..69b97177a6447 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