add __traits(getTargetInfo, "dcomputeTargets") (#3090)

This commit is contained in:
Nicholas Wilson 2019-06-14 10:49:46 +08:00 committed by GitHub
parent e11079513c
commit b750ce0c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 2 deletions

View file

@ -1073,9 +1073,9 @@ void codegenModules(Modules &modules) {
if (!computeModules.empty()) {
for (auto &mod : computeModules)
dccg.emit(mod);
dccg.writeModules();
}
dccg.writeModules();
// We may have removed all object files, if so don't link.
if (global.params.objfiles.dim == 0)
global.params.link = false;