mirror of
https://github.com/pocketpy/pocketpy
synced 2026-08-12 00:57:13 +08:00
Compare commits
2 Commits
a06e6ac6ba
...
fed2bcea78
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fed2bcea78 | ||
|
|
799829a8aa |
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -56,11 +56,11 @@ jobs:
|
|||||||
- name: Setup Clang
|
- name: Setup Clang
|
||||||
uses: egor-tensin/setup-clang@v1
|
uses: egor-tensin/setup-clang@v1
|
||||||
with:
|
with:
|
||||||
version: 17
|
version: 19
|
||||||
platform: x64
|
platform: x64
|
||||||
- name: Run Sanitizers
|
- name: Run Sanitizers
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libclang-rt-17-dev
|
sudo apt-get install -y libclang-rt-19-dev
|
||||||
bash build_g.sh
|
bash build_g.sh
|
||||||
bash run_tests.sh
|
bash run_tests.sh
|
||||||
rm -rf ./main
|
rm -rf ./main
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
typedef struct PyObject PyObject;
|
typedef struct PyObject PyObject;
|
||||||
typedef struct VM VM;
|
typedef struct VM VM;
|
||||||
extern _Thread_local VM* pk_current_vm;
|
extern PK_THREAD_LOCAL VM* pk_current_vm;
|
||||||
|
|
||||||
typedef struct py_TValue {
|
typedef struct py_TValue {
|
||||||
py_Type type;
|
py_Type type;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ rm -rf .coverage
|
|||||||
mkdir .coverage
|
mkdir .coverage
|
||||||
|
|
||||||
UNITS=$(find ./ -name "*.gcno")
|
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
|
mv *.gcov .coverage
|
||||||
rm *.gcda
|
rm *.gcda
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "pocketpy/common/name.h"
|
#include "pocketpy/common/name.h"
|
||||||
#include "pocketpy/interpreter/vm.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_initialized;
|
||||||
static bool pk_finalized;
|
static bool pk_finalized;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user