mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 17:59:42 +00:00
feat: Update version to 0.4.0, add test command, and improve documentation for testing functionality
This commit is contained in:
@@ -112,7 +112,7 @@ fn source_extensions(language: &str) -> Vec<&str> {
|
||||
|
||||
fn default_flags(profile: &str) -> &'static [&'static str] {
|
||||
match profile {
|
||||
"release" => &["-O3", "-DNDEBUG", "-march=native"],
|
||||
"release" => &["-O3", "-DNDEBUG"],
|
||||
"debug" => &[
|
||||
"-O0",
|
||||
"-g",
|
||||
@@ -156,9 +156,6 @@ fn build_objects(
|
||||
cmd.arg(format!("-std={}", ctx.standard));
|
||||
}
|
||||
for flag in default_flags(ctx.profile) {
|
||||
if ctx.platform.is_some() && *flag == "-march=native" {
|
||||
continue;
|
||||
}
|
||||
cmd.arg(flag);
|
||||
}
|
||||
for flag in ctx.cflags {
|
||||
|
||||
Reference in New Issue
Block a user