Skip to content

Commit

Permalink
Don't override target passed on command-line with target from sysimg
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Dec 15, 2020
1 parent b376982 commit 2da5cb2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7712,7 +7712,7 @@ extern "C" void jl_init_llvm(void)
std::unique_ptr<MCSubtargetInfo> MSTI(
TheTarget->createMCSubtargetInfo(TheTriple.str(), "", ""));
if (!MSTI->isCPUStringValid(TheCPU))
jl_errorf("Invalid CPU name %s.", TheCPU.c_str());
jl_errorf("Invalid CPU name \"%s\".", TheCPU.c_str());
if (jl_processor_print_help) {
// This is the only way I can find to print the help message once.
// It'll be nice if we can iterate through the features and print our own help
Expand Down
1 change: 0 additions & 1 deletion src/processor_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ static uint32_t sysimg_init_cb(const void *id)
best_idx = i;
}
}
target = sysimg[best_idx];
jit_targets.push_back(std::move(target));
return best_idx;
}
Expand Down

0 comments on commit 2da5cb2

Please sign in to comment.