Skip to content

Commit

Permalink
Try installing clang for build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed May 6, 2024
1 parent 0336a18 commit d47c585
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Install clang for build scripts
run: apt-get update -y && apt-get install -y clang

- name: Hide duplicated warnings from lint job
run: echo "::remove-matcher owner=clippy::"

Expand Down
1 change: 1 addition & 0 deletions ctru-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn main() {
let romfs_path = PathBuf::from(format!("{manifest_dir}/{romfs_dir_setting}"));

// Check if the romfs path exists so we can compile the module
println!("cargo:rustc-check-cfg=cfg(romfs_exists)");
if romfs_path.exists() {
println!("cargo:rustc-cfg=romfs_exists");
}
Expand Down
1 change: 0 additions & 1 deletion ctru-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ layout-tests = [
]

[[test]]
path = "tests/layout_test.rs"
name = "layout_test"
required-features = ["layout-tests"]

Expand Down
1 change: 0 additions & 1 deletion ctru-sys/build/test_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use bindgen::callbacks::{
use bindgen::FieldVisibilityKind;
use proc_macro2::TokenStream;
use quote::{format_ident, quote, TokenStreamExt};

use regex::Regex;
use rust_format::{Formatter, RustFmt};

Expand Down

0 comments on commit d47c585

Please sign in to comment.