From 6826bf3b0f4919656a67b51b075ce2db3f43741d Mon Sep 17 00:00:00 2001 From: Jake Massimo Date: Tue, 28 Apr 2026 21:01:30 +0000 Subject: [PATCH] Add ML-DSA x86_64 native assembly to CC builder scripts Add discovery of ML-DSA mldsa-native x86_64 assembly files in the CC builder scripts for linux-x86_64 and apple-x86_64, matching the existing pattern used for ML-KEM. This is needed once aws-lc imports the mldsa-native x86_64 backend (aws/aws-lc#3195). Signed-off-by: Jake Massimo --- aws-lc-sys/scripts/cc_builder/apple_x86_64.sh | 2 ++ aws-lc-sys/scripts/cc_builder/linux_x86_64.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/aws-lc-sys/scripts/cc_builder/apple_x86_64.sh b/aws-lc-sys/scripts/cc_builder/apple_x86_64.sh index 56f2f61fa810..b3c81d99ad24 100755 --- a/aws-lc-sys/scripts/cc_builder/apple_x86_64.sh +++ b/aws-lc-sys/scripts/cc_builder/apple_x86_64.sh @@ -14,6 +14,8 @@ declare -a SOURCE_FILES SOURCE_FILES=() mapfile -O 0 -t SOURCE_FILES < <(find crypto/fipsmodule/ml_kem/mlkem/native/x86_64/src -name "*.S" -type f | sort -f) echo "${SOURCE_FILES[@]}" +mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find crypto/fipsmodule/ml_dsa/mldsa/native/x86_64/src -name "*.S" -type f | sort -f) +echo "${SOURCE_FILES[@]}" mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find generated-src/mac-x86_64/crypto -name "*.S" -type f | sort -f) echo "${SOURCE_FILES[@]}" mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(s2n_bignum_x86_64) diff --git a/aws-lc-sys/scripts/cc_builder/linux_x86_64.sh b/aws-lc-sys/scripts/cc_builder/linux_x86_64.sh index 6276a1bc76c2..789980e08e45 100755 --- a/aws-lc-sys/scripts/cc_builder/linux_x86_64.sh +++ b/aws-lc-sys/scripts/cc_builder/linux_x86_64.sh @@ -14,6 +14,8 @@ declare -a SOURCE_FILES SOURCE_FILES=() mapfile -O 0 -t SOURCE_FILES < <(find crypto/fipsmodule/ml_kem/mlkem/native/x86_64/src -name "*.S" -type f | sort -f) echo "${SOURCE_FILES[@]}" +mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find crypto/fipsmodule/ml_dsa/mldsa/native/x86_64/src -name "*.S" -type f | sort -f) +echo "${SOURCE_FILES[@]}" mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(find generated-src/linux-x86_64/crypto -name "*.S" -type f | sort -f) echo "${SOURCE_FILES[@]}" mapfile -O ${#SOURCE_FILES[@]} -t SOURCE_FILES < <(s2n_bignum_x86_64)