diff options
author | Roman Scherer <[email protected]> | 2024-01-05 14:30:48 +0100 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2024-08-31 10:44:38 +0200 |
commit | 337fc6732ef5e3d5e49f3a7035f54037dcf502c6 (patch) | |
tree | 1fba72cc733ed12cefa4aa89deb4d37625f318e1 | |
parent | 77f46f39b5fd42cbbe598b98d012a0b33f44c7c8 (diff) |
build/cargo-build-system: Support 16k page sizes on aarch64.
* guix/build/cargo-build-system.scm (configure): Support 16k page sizes on aarch64.
Change-Id: I523c192159908483577301da246d75d16b694bc8
Signed-off-by: Maxim Cournoyer <[email protected]>
-rw-r--r-- | guix/build/cargo-build-system.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 48c5f9d4bf..8dcbd461a8 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -119,7 +119,7 @@ libraries or executables." (error "Possible pre-generated files found:" pregenerated-files)))) (define* (configure #:key inputs - target + target system (vendor-dir "guix-vendor") #:allow-other-keys) "Vendor Cargo.toml dependencies as guix inputs." @@ -179,6 +179,10 @@ libraries or executables." ;; Prevent targeting the build machine. (setenv "CRATE_CC_NO_DEFAULTS" "1")) + ;; Support 16k kernel page sizes on aarch64 with jemalloc. + (when (string-prefix? "aarch64" (or target system)) + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14")) + ;; Configure cargo to actually use this new directory with all the crates. (setenv "CARGO_HOME" (string-append (getcwd) "/.cargo")) (mkdir-p ".cargo") |