Fix stdc atomics detection and add vs2019 msvc job

This commit is contained in:
Adam Satko 2024-10-22 18:02:15 +00:00 committed by GitHub
parent 995de2592a
commit 62f4713780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View file

@ -212,6 +212,23 @@ jobs:
build\${{matrix.buildType}}\run-test262.exe -c tests.conf build\${{matrix.buildType}}\run-test262.exe -c tests.conf
build\${{matrix.buildType}}\function_source.exe 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: windows-clang:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:

View file

@ -62,7 +62,7 @@
#define NO_TM_GMTOFF #define NO_TM_GMTOFF
#endif #endif
#if !defined(EMSCRIPTEN) && !defined(__wasi__) && !defined(__STDC_NO_ATOMICS__) #if !defined(EMSCRIPTEN) && !defined(__wasi__) && !__STDC_NO_ATOMICS__
#include "quickjs-c-atomics.h" #include "quickjs-c-atomics.h"
#define CONFIG_ATOMICS #define CONFIG_ATOMICS
#endif #endif