-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
java: Adjust how we handle manual cross-compilation
Follow-up to 0453438. Previously, setting CARGO_BUILD_TARGET before manually calling build_jni.sh merely did a Cargo build with the same settings as the host build. However, adding support for cross-compiles for the server build broke this "ad hoc" cross-compilation. Fortunately, it was used only in one place: providing both flavors of Mac library in a built libsignal-client and libsignal-server. We can use the *new* cross-compilation support for this instead, reducing special cases. This also limits the conditions where build_jni.sh will automatically set CC and other environment variables, and allows that behavior to be overridden by manually setting them.
- Loading branch information
1 parent
3e06408
commit d3adfba
Showing
2 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
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