-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build rust projects with x86_64-win7-windows-msvc target
- Loading branch information
1 parent
f309dbc
commit 6e5de79
Showing
5 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
@cargo b --release | ||
@copy target\release\chd_capi.dll ..\..\Assets\dll | ||
@copy target\release\chd_capi.dll ..\..\output\dll | ||
:: To maintain Win7/8/8.1 compat for release builds, we must compile using the *-win7-windows-msvc target | ||
:: This is a "Tier 3" target, which does not have prebuilt binaries (e.g. for standard library) available in rustup | ||
:: The simplest way to use this target is to use the build-std argument, which builds the standard library | ||
:: This requires the user to install the nightly toolchain (build-std is not in stable), then add the rust-src component | ||
:: rustup toolchain install nightly-x86_64-pc-windows-msvc | ||
:: rustup component add rust-src --toolchain nightly-x86_64-pc-windows-msvc | ||
:: These don't need to be done for developer only builds (e.g. debug), only release builds need this | ||
@cargo +nightly-x86_64-pc-windows-msvc b --release -Z build-std --target x86_64-win7-windows-msvc | ||
@copy target\x86_64-win7-windows-msvc\release\chd_capi.dll ..\..\Assets\dll | ||
@copy target\x86_64-win7-windows-msvc\release\chd_capi.dll ..\..\output\dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
@cargo b --release | ||
@copy target\release\waterboxhost.dll ..\..\Assets\dll | ||
@copy target\release\waterboxhost.dll ..\..\output\dll | ||
:: To maintain Win7/8/8.1 compat for release builds, we must compile using the *-win7-windows-msvc target | ||
:: This is a "Tier 3" target, which does not have prebuilt binaries (e.g. for standard library) available in rustup | ||
:: The simplest way to use this target is to use the build-std argument, which builds the standard library | ||
:: This requires the user to install the nightly toolchain (build-std is not in stable), then add the rust-src component | ||
:: rustup toolchain install nightly-x86_64-pc-windows-msvc | ||
:: rustup component add rust-src --toolchain nightly-x86_64-pc-windows-msvc | ||
:: These don't need to be done for developer only builds (e.g. debug and/or no-dirty-detection), only release builds need this | ||
@cargo +nightly-x86_64-pc-windows-msvc b --release -Z build-std --target x86_64-win7-windows-msvc | ||
@copy target\x86_64-win7-windows-msvc\release\waterboxhost.dll ..\..\Assets\dll | ||
@copy target\x86_64-win7-windows-msvc\release\waterboxhost.dll ..\..\output\dll |