mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-22 07:58:24 +00:00
feat: optimize linker output on linux
This commit is contained in:
parent
d924305578
commit
4a5ca4a494
|
@ -34,6 +34,7 @@ pub fn link_shared_lib(
|
|||
"-L/lib/../lib64",
|
||||
"-L/usr/lib/../lib64",
|
||||
"-lc",
|
||||
"-O1",
|
||||
&input_path.display().to_string(),
|
||||
]
|
||||
}
|
||||
|
@ -102,6 +103,7 @@ pub fn link_binary(
|
|||
"-zrelro",
|
||||
"--no-as-needed",
|
||||
"-lc",
|
||||
"-O1",
|
||||
crtn,
|
||||
&input_path.display().to_string(),
|
||||
]
|
||||
|
|
|
@ -20,7 +20,6 @@ mod common;
|
|||
#[test_case(TEST_IF_NO_ELSE, "TEST_IF_NO_ELSE", false, 1, &[] ; "TEST_IF_NO_ELSE")]
|
||||
#[test_case(TEST_IF_NO_ELSE, "TEST_IF_NO_ELSE", false, 2, &["a"] ; "TEST_IF_NO_ELSE args")]
|
||||
fn example_tests(source: &str, name: &str, is_library: bool, status_code: i32, args: &[&str]) {
|
||||
dbg!(source);
|
||||
let program = compile_program(source, name, is_library).unwrap();
|
||||
|
||||
assert!(program.binary_file.exists(), "program not compiled");
|
||||
|
|
Loading…
Reference in a new issue