Skip to content

Commit

Permalink
Actually do release builds...
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Sep 19, 2024
1 parent 255e916 commit b4d4726
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions modules/holochain-cross.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ let
# See: https://doc.rust-lang.org/cargo/reference/config.html#target
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_TARGET_AARCH64_UNKNOWN_APPLE_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_PROFILE="release";

# Tell cargo which target we want to build (so it doesn't default to the build system).
cargoExtraArgs = "--target ${rustTargetTriple}";
Expand Down
1 change: 1 addition & 0 deletions modules/holochain-windows.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ let
doCheck = false;

CARGO_BUILD_TARGET = "x86_64-pc-windows-gnu";
CARGO_PROFILE="release";

# fixes issues related to libring
TARGET_CC = "${pkgs.pkgsCross.mingwW64.stdenv.cc}/bin/${pkgs.pkgsCross.mingwW64.stdenv.cc.targetPrefix}cc";
Expand Down
1 change: 1 addition & 0 deletions modules/lair-keystore-cross.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ let
# See: https://doc.rust-lang.org/cargo/reference/config.html#target
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_TARGET_AARCH64_UNKNOWN_APPLE_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_PROFILE="release";

# Tell cargo which target we want to build (so it doesn't default to the build system).
cargoExtraArgs = "--target ${rustTargetTriple}";
Expand Down
1 change: 1 addition & 0 deletions modules/lair-keystore-windows.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ let
doCheck = false;

CARGO_BUILD_TARGET = "x86_64-pc-windows-gnu";
CARGO_PROFILE="release";

# fixes issues related to libring
TARGET_CC = "${pkgs.pkgsCross.mingwW64.stdenv.cc}/bin/${pkgs.pkgsCross.mingwW64.stdenv.cc.targetPrefix}cc";
Expand Down

0 comments on commit b4d4726

Please sign in to comment.