Skip to content

Commit

Permalink
Fix for top-of-tree LLVM (#8145)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson authored Mar 8, 2024
1 parent 22868a4 commit 8cc4f02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CodeGen_Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,11 @@ void get_target_options(const llvm::Module &module, llvm::TargetOptions &options
options.UseInitArray = true;
options.FloatABIType =
use_soft_float_abi ? llvm::FloatABI::Soft : llvm::FloatABI::Hard;
#if LLVM_VERSION >= 190
options.MCOptions.X86RelaxRelocations = false;
#else
options.RelaxELFRelocations = false;
#endif
options.MCOptions.ABIName = mabi;
}

Expand Down

0 comments on commit 8cc4f02

Please sign in to comment.