Skip to content

Commit

Permalink
Fix stdc atomics detection and add vs2019 msvc job
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 authored Oct 22, 2024
1 parent 995de25 commit 62f4713
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,23 @@ jobs:
build\${{matrix.buildType}}\run-test262.exe -c tests.conf
build\${{matrix.buildType}}\function_source.exe
windows-msvc-vs2019:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
arch: [x64, Win32]
buildType: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: build
run: |
cmake -B build -DBUILD_EXAMPLES=ON -G "Visual Studio 16 2019" -A ${{matrix.arch}}
cmake --build build --config ${{matrix.buildType}} --target qjs_exe
- name: stats
run: |
build\${{matrix.buildType}}\qjs.exe -qd
windows-clang:
runs-on: windows-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#define NO_TM_GMTOFF
#endif

#if !defined(EMSCRIPTEN) && !defined(__wasi__) && !defined(__STDC_NO_ATOMICS__)
#if !defined(EMSCRIPTEN) && !defined(__wasi__) && !__STDC_NO_ATOMICS__
#include "quickjs-c-atomics.h"
#define CONFIG_ATOMICS
#endif
Expand Down

0 comments on commit 62f4713

Please sign in to comment.