stage1: Store the specified code model in the LLVM module
This is needed for LTO builds to pick up the correct module. Closes #9132
This commit is contained in:
committed by
Veikka Tuominen
parent
b9e78593bb
commit
ccb6e1627e
@@ -9289,6 +9289,10 @@ static void init(CodeGen *g) {
|
||||
ZigLLVMSetModulePIELevel(g->module);
|
||||
}
|
||||
|
||||
if (g->code_model != CodeModelDefault) {
|
||||
ZigLLVMSetModuleCodeModel(g->module, to_llvm_code_model(g));
|
||||
}
|
||||
|
||||
const char *target_specific_cpu_args = "";
|
||||
const char *target_specific_features = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user