Commit ebee4356 authored by John's avatar John

add linker argument to linkGCC and linkLinker

parent 8d280be4
Pipeline #39585 passed with stage
in 57 seconds
......@@ -422,15 +422,15 @@ Link linker winfun path
= (winfun ["Linker error: Could not write the options object file: "+++optionspathname] ps,False)
| size calling_convention==0
| linker=="/usr/bin/gcc"
= linkGCC options2 ps
= linkLinker options1 ps
= linkGCC linker options2 ps
= linkLinker linker options1 ps
| calling_convention=="gcc"
= linkGCC options2 ps
= linkGCC linker options2 ps
| calling_convention=="linker"
= linkLinker options1 ps
= linkLinker linker options1 ps
= (winfun ["Linker error: Unknown calling convention : "+++calling_convention] ps,False)
where
linkGCC options2 ps
linkGCC linker options2 ps
# linker_args =
//Options2 are for the actual linker (gcc/clang)
["-s","-o", path: [optionspathname : StrictListToList (RemoveDup object_file_names)]++add_options_string_to_args 0 options2 (StrictListToList library_file_names)]
......@@ -454,7 +454,7 @@ where
# link_ok = result>=0
= (ps,link_ok)
linkLinker options1 ps
linkLinker linker options1 ps
# linkopts =
{ exe_path = path
, res_path = resource_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment