forked from 1b-agent/opencadstudio-upstream
fix(build): scope Windows debug stack
Apply /STACK only to the debug app binary instead of every Windows target artifact.
This commit is contained in:
1 parent
fcffa13693
commit
f9e7afdee2
2 files changed
+7
-11
No files matched your search
@@ -33,10 +33,13 @@ fn main() {
|
||||
revision
|
||||
};
|
||||
println!("cargo:rustc-env=OCS_GIT_REV={revision}");
|
||||
println!(
|
||||
"cargo:rustc-env=OCS_BUILD_PROFILE={}",
|
||||
std::env::var("PROFILE").unwrap_or_else(|_| "unknown".to_string())
|
||||
);
|
||||
let profile = std::env::var("PROFILE").unwrap_or_else(|_| "unknown".to_string());
|
||||
println!("cargo:rustc-env=OCS_BUILD_PROFILE={profile}");
|
||||
if std::env::var("TARGET").ok().as_deref() == Some("x86_64-pc-windows-msvc")
|
||||
&& profile == "debug"
|
||||
{
|
||||
println!("cargo:rustc-link-arg-bin=OpenCADStudio=/STACK:16777216");
|
||||
}
|
||||
let mut features: Vec<String> = std::env::vars()
|
||||
.filter_map(|(name, value)| {
|
||||
(value == "1")
|
||||
|
||||
Reference in new issue
Block a user