From 9a0d09944be9fd7988e0ea0571bb58c2abeb56cb Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Fri, 4 Nov 2022 16:58:25 +0000 Subject: [PATCH] set rustflags for s2 target --- .github/workflows/ci-async.yml | 2 ++ .github/workflows/ci.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci-async.yml b/.github/workflows/ci-async.yml index 3d0c46f998..c1babaa52f 100644 --- a/.github/workflows/ci-async.yml +++ b/.github/workflows/ci-async.yml @@ -62,6 +62,8 @@ jobs: [ "embassy_hello_world" ] + env: + RUSTFLAGS: "--cfg target_has_atomic=\"8\" --cfg target_has_atomic=\"16\" --cfg target_has_atomic=\"32\" --cfg target_has_atomic=\"ptr\"" steps: - uses: actions/checkout@v2 - uses: esp-rs/xtensa-toolchain@v1.4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 768d97cb08..e8b49dc9af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,8 @@ jobs: { chip: esp32s3, features: "eh1,smartled,ufmt" }, { chip: esp32s3, features: "direct-boot,eh1,smartled,ufmt" }, ] + env: + RUSTFLAGS: "--cfg target_has_atomic=\"8\" --cfg target_has_atomic=\"16\" --cfg target_has_atomic=\"32\" --cfg target_has_atomic=\"ptr\"" steps: - uses: actions/checkout@v2 - uses: esp-rs/xtensa-toolchain@v1.4