Closed alphaville closed 4 years ago
Not sure whether there should be an optional -O3 in icasadi's build.rs, that is
-O3
cc::Build::new() .flag_if_supported("-Wall") .flag_if_supported("-Wpedantic") .flag_if_supported("-Wno-long-long") .flag_if_supported("-Wno-unused-parameter") .flag_if_supported("-O3")
If we compile the Rust code with --release does the associated C code (auto-generated C files by CasADi) get compiled with appropriate optimization flags?
--release
C
It is fine :) cc takes info from the build info: https://docs.rs/cc/1.0.1/cc/struct.Build.html#method.opt_level
:+1: Thanks a lot!
Not sure whether there should be an optional
-O3
in icasadi's build.rs, that isIf we compile the Rust code with
--release
does the associatedC
code (auto-generated C files by CasADi) get compiled with appropriate optimization flags?