Skip to content

Commit cd3cb9c

Browse files
Fix AArch32 ARCH detection logic
Oops.
1 parent e9180d7 commit cd3cb9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Random123.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ else
5050
end
5151

5252
"True when Arm AArch64 FEAT_AES instructions have been detected."
53-
const R123_USE_ARM_AARCH64_FEAT_AES::Bool = if Sys.ARCH :aarch64
53+
const R123_USE_ARM_AARCH64_FEAT_AES::Bool = @static if Sys.ARCH :aarch64
5454
try
5555
cmd = Base.julia_cmd()
5656
push!(
@@ -73,7 +73,7 @@ else
7373
end
7474

7575
"True when Arm AArch32 FEAT_AES instructions have been detected."
76-
const R123_USE_ARM_AARCH32_FEAT_AES::Bool = if Sys.ARCH :aarch64
76+
const R123_USE_ARM_AARCH32_FEAT_AES::Bool = @static if startswith(String(Sys.ARCH), "arm")
7777
try
7878
cmd = Base.julia_cmd()
7979
push!(

0 commit comments

Comments
 (0)