Skip to content

Commit

Permalink
Merge pull request #129 from roblabla/fix-arch
Browse files Browse the repository at this point in the history
Fix not passing -arch
  • Loading branch information
volks73 committed Nov 19, 2020
2 parents 2236247 + 09f860d commit df36cfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ impl Execution {
debug!("locale = {:?}", locale);
let platform = self.platform()?;
debug!("platform = {:?}", platform);
let wix_arch = platform.wix_arch()?;
debug!("wix_arch = {:?}", wix_arch);
let debug_build = self.debug_build(&metadata);
debug!("debug_build = {:?}", debug_build);
let profile = if debug_build { "debug" } else { "release" };
Expand Down Expand Up @@ -467,7 +469,8 @@ impl Execution {
compiler.arg(format!("-dProfile={}", profile));
compiler
.arg(format!("-dVersion={}", version))
.arg(format!("-dPlatform={}", platform.wix_arch()?))
.args(&["-arch", &wix_arch])
.arg(format!("-dPlatform={}", wix_arch))
.arg({
let mut s = OsString::from("-dCargoTargetDir=");
s.push(&manifest.target_directory);
Expand Down

0 comments on commit df36cfd

Please sign in to comment.