Skip to content

Commit ac379da

Browse files
authored
Fix build error on Android (#588)
1 parent aa96363 commit ac379da

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
strategy:
6565
matrix:
6666
target: [
67+
aarch64-linux-android,
6768
x86_64-unknown-fuchsia,
6869
x86_64-unknown-redox,
6970
x86_64-fortanix-unknown-sgx,

.github/workflows/tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ jobs:
5555
- run: cargo test --target=${{ matrix.target }} --features=std
5656
- env:
5757
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom"
58+
RUSTDOCFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom"
5859
run: cargo test --target=${{ matrix.target }} --features=std
5960
- env:
6061
RUSTFLAGS: -Dwarnings --cfg getrandom_test_linux_fallback
62+
RUSTDOCFLAGS: -Dwarnings --cfg getrandom_test_linux_fallback
6163
run: cargo test --features=std
6264
- env:
6365
RUSTFLAGS: -Dwarnings --cfg getrandom_backend="rdrand"
66+
RUSTDOCFLAGS: -Dwarnings --cfg getrandom_backend="rdrand"
6467
run: cargo test --features=std
6568

6669
ios:

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ compiler_builtins = { version = "0.1", optional = true }
3131
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
3232

3333
# linux_android / linux_android_with_fallback
34-
[target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(target_env = "", getrandom_backend = "custom"))))'.dependencies]
34+
[target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(getrandom_backend = "custom", getrandom_backend = "rdrand", getrandom_backend = "rndr"))))'.dependencies]
3535
libc = { version = "0.2.154", default-features = false }
3636

3737
# apple-other

0 commit comments

Comments
 (0)