Skip to content

Commit

Permalink
Fix GCC std flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sepcnt committed May 20, 2024
1 parent dd8ebb1 commit 8f15382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
with:
cuda: '12.4.1'
method: 'network'
sub-packages: '[ "nvcc", "cudart", "nvrtc" ]'
if: matrix.os != 'macOS-latest'

- name: Clippy Check
run: cargo clippy --all-features -- -D warnings
run: cargo clippy -- -D warnings
continue-on-error: true

- name: Build
run: cargo build --all-features
run: cargo build
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ fn main() {

if cfg!(target_env = "msvc") {
build.flag("/experimental:c11atomics");
build.std("c11");
}

match build
.file("src/hvm.c")
.opt_level(3)
.std("c11")
.warnings(false)
.define("TPC_L2", &*tpcl2.to_string())
.try_compile("hvm-c") {
Expand Down

0 comments on commit 8f15382

Please sign in to comment.