mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Fix linking with PIC
This commit is contained in:
parent
c7f5793d2a
commit
c1cae950e7
2 changed files with 12 additions and 1 deletions
|
@ -273,7 +273,7 @@ pub fn gen_from_mono_module(
|
|||
use target_lexicon::Architecture;
|
||||
match target.architecture {
|
||||
Architecture::X86_64 | Architecture::Aarch64(_) => {
|
||||
let reloc = RelocMode::Default;
|
||||
let reloc = RelocMode::PIC;
|
||||
let model = CodeModel::Default;
|
||||
let target_machine =
|
||||
target::target_machine(target, convert_opt_level(opt_level), reloc, model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue