From 62f4713780290cc8e5278e5045103c27a46fe24f Mon Sep 17 00:00:00 2001 From: Adam Satko <54475808+satk0@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:02:15 +0000 Subject: [PATCH] Fix stdc atomics detection and add vs2019 msvc job --- .github/workflows/ci.yml | 17 +++++++++++++++++ quickjs.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d967b2..8fa0a9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/quickjs.c b/quickjs.c index fe4b1a6..8573578 100644 --- a/quickjs.c +++ b/quickjs.c @@ -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