Revert "Support cross compiling from host to host (#12859)" (#13591)

This reverts commit e4f7656772.
This commit is contained in:
genotrance 2020-03-10 09:58:27 -05:00 • committed by GitHub
commit ab5d962b50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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