Compare commits

...

2 Commits

Author SHA1 Message Date
blueloveTH
fed2bcea78 update to 19 2026-07-28 18:55:16 +08:00
blueloveTH
799829a8aa fix PK_THREAD_LOCAL 2026-07-28 18:42:34 +08:00
4 changed files with 5 additions and 5 deletions

View File

@ -56,11 +56,11 @@ jobs:
- name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: 17
version: 19
platform: x64
- name: Run Sanitizers
run: |
sudo apt-get install -y libclang-rt-17-dev
sudo apt-get install -y libclang-rt-19-dev
bash build_g.sh
bash run_tests.sh
rm -rf ./main

View File

@ -4,7 +4,7 @@
typedef struct PyObject PyObject;
typedef struct VM VM;
extern _Thread_local VM* pk_current_vm;
extern PK_THREAD_LOCAL VM* pk_current_vm;
typedef struct py_TValue {
py_Type type;

View File

@ -17,7 +17,7 @@ rm -rf .coverage
mkdir .coverage
UNITS=$(find ./ -name "*.gcno")
llvm-cov-17 gcov ${UNITS} -r -s include/ -r -s src/ >> .coverage/coverage.txt
llvm-cov-19 gcov ${UNITS} -r -s include/ -r -s src/ >> .coverage/coverage.txt
mv *.gcov .coverage
rm *.gcda

View File

@ -5,7 +5,7 @@
#include "pocketpy/common/name.h"
#include "pocketpy/interpreter/vm.h"
_Thread_local VM* pk_current_vm;
PK_THREAD_LOCAL VM* pk_current_vm;
static bool pk_initialized;
static bool pk_finalized;