Skip to content

Commit

Permalink
Trying with --relocation-model=pic
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jul 24, 2023
1 parent 1d32c35 commit d852146
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jai/build.jai
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build :: () {
target_options.output_executable_name = "byod_jai_lib";
target_options.output_type = .STATIC_LIBRARY; // specifies output to be a static library
target_options.backend = .LLVM;
target_options.llvm_options.command_line = string.[target_options.output_executable_name, "--relocation-model=pic"];
target_options.text_output_flags = 1;
set_optimization(*target_options, .OPTIMIZED);

Expand Down

0 comments on commit d852146

Please sign in to comment.