Skip to content

Commit

Permalink
zig-build: add msvc target (rebased)
Browse files Browse the repository at this point in the history
zig: add build-lib c++ & tba support
ci: C++ test
ci: msvc enable_werror falsed
zig issue - warn to error: argument unused during compilation: '-nostdinc++'
  • Loading branch information
kassane committed Apr 30, 2024
1 parent 67090a1 commit 94dda1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/zig-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ jobs:
-Denable_rwlock=${{ matrix.enable_rwlock }}
-Denable_thread_local_alloc=${{ matrix.thread_local_alloc }}
-Denable_threads=${{ matrix.enable_threads }}
-Denable_cplusplus=${{ matrix.enable_cplusplus }}
-Denable_werror
test
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,9 @@ pub fn build(b: *std.Build) void {
if (enable_gc_debug) {
addTest(b, gc, test_step, flags, "tracetest", "tests/trace.c");
}
if(enable_cplusplus) {
addTest(b, gccpp, test_step, flags, "cpptest", "tests/cpp.cc");
}
if (enable_threads) {
addTest(b, gc, test_step, flags, "atomicopstest", "tests/atomicops.c");
addTest(b, gc, test_step, flags,
Expand Down

0 comments on commit 94dda1f

Please sign in to comment.