Skip to content

Commit 24aeb95

Browse files
committed
fix: now it checks TARGET prefix in build.rs,also I finally added nasm to ARM CI runner
1 parent 2a10478 commit 24aeb95

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/arm-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
sudo apt-get update
23-
sudo apt-get install -y qemu-system-arm binutils-aarch64-linux-gnu
23+
sudo apt-get install -y qemu-system-arm binutils-aarch64-linux-gnu nasm
2424
2525
- name: Clone standalone benchmark
2626
run: |

build.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ use std::env;
22
use std::path::PathBuf;
33

44
fn main() {
5-
let target = env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
6-
let target_triple = env::var("TARGET").unwrap_or_default();
5+
let target = env::var("TARGET").unwrap_or_default();
76

8-
// Only assemble switch.s when building for x86_64 bare metal
9-
if target != "x86_64" || !target_triple.contains("x86_64") {
7+
if !target.starts_with("x86_64") {
108
return;
119
}
1210

0 commit comments

Comments
 (0)