Skip to content

Commit 693d341

Browse files
committed
Improve and update Python to 3.9, change some naming conventions, add -rdynamic for backtrace symbols in shared objects.
1 parent 86dfe62 commit 693d341

File tree

25 files changed

+32
-32
lines changed

25 files changed

+32
-32
lines changed

cmake/CompileOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ if (PROJECT_OS_FAMILY MATCHES "unix")
205205
# Debug symbols
206206
if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
207207
add_compile_options(-g)
208-
add_compile_options(-rdynamic)
208+
add_link_options(-rdynamic)
209209
endif()
210210

211211
# Optimizations

source/loaders/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ option(OPTION_BUILD_LOADERS_LLVM "Build LLVM 11 loader plugin." OFF)
1818
option(OPTION_BUILD_LOADERS_LUA "Build LuaJIT2 v2.1 (OpenResty fork) loader plugin." OFF)
1919
option(OPTION_BUILD_LOADERS_MOCK "Build mock loader loader plugin." ON)
2020
option(OPTION_BUILD_LOADERS_NODE "Build NodeJS v12.21.0 JavaScript Runtime loader plugin." OFF)
21-
option(OPTION_BUILD_LOADERS_PY "Build Python 3.7 C API loader plugin." OFF)
22-
option(OPTION_BUILD_LOADERS_RB "Build Ruby 2.5 C API loader plugin." OFF)
21+
option(OPTION_BUILD_LOADERS_PY "Build Python 3.9 C API loader plugin." OFF)
22+
option(OPTION_BUILD_LOADERS_RB "Build Ruby 2.7 C API loader plugin." OFF)
2323
option(OPTION_BUILD_LOADERS_RPC "Build cURL Remote Procedure Call loader plugin." OFF)
2424
option(OPTION_BUILD_LOADERS_TS "Build TypeScript 3.9.7 Runtime loader plugin." OFF)
2525
option(OPTION_BUILD_LOADERS_WASM "Build WebAssembly Virtual Machine loader plugin." OFF)
@@ -39,8 +39,8 @@ add_subdirectory(llvm_loader) # LLVM Compiler Infrastructure
3939
add_subdirectory(lua_loader) # LuaJIT2 v2.1 (OpenResty fork) Runtime
4040
add_subdirectory(mock_loader) # Mock loader plugin without dependencies (core testing)
4141
add_subdirectory(node_loader) # NodeJS v12.21.0 JavaScript Runtime
42-
add_subdirectory(py_loader) # Python 3.7 C API
43-
add_subdirectory(rb_loader) # Ruby 2.5 C API
42+
add_subdirectory(py_loader) # Python 3.9 C API
43+
add_subdirectory(rb_loader) # Ruby 2.7 C API
4444
add_subdirectory(rpc_loader) # cURL Remote Procedure Call
4545
add_subdirectory(ts_loader) # TypeScript 3.9.7
4646
add_subdirectory(wasm_loader) # WebAssembly Virtual Machine

source/ports/py_port/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ endif()
66
#
77
# External dependencies
88
#
9-
10-
set(Python_ADDITIONAL_VERSIONS 3.7)
9+
set(Python_ADDITIONAL_VERSIONS 3)
1110

1211
find_package(PythonInterp REQUIRED)
1312

source/ports/py_port/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
'Programming Language :: Python :: 3.6',
8282
'Programming Language :: Python :: 3.7',
8383
'Programming Language :: Python :: 3.8',
84+
'Programming Language :: Python :: 3.9',
8485
],
8586

8687
# Keywords

source/ports/py_port/tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ basepython =
2323
py36: python3.6
2424
py37: python3.7
2525
py38: python3.8
26+
py39: python3.9
2627
deps =
2728
check-manifest
28-
{py27,py33,py34,py35,py36,py37,py38}: readme_renderer
29+
{py27,py33,py34,py35,py36,py37,py38,py39}: readme_renderer
2930
flake8
3031
pytest
3132
commands =
3233
check-manifest --ignore tox.ini,tests*
3334
# py26 doesn't have "setup.py check"
34-
{py27,py33,py34,py35,py36,py37,py38}: python setup.py check -m -r -s
35+
{py27,py33,py34,py35,py36,py37,py38,py39}: python setup.py check -m -r -s
3536
flake8 .
3637
py.test tests
3738
[flake8]

source/scripts/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ add_subdirectory(host)
3232
add_subdirectory(s1)
3333
add_subdirectory(s2)
3434
add_subdirectory(withoutfunctions)
35-
add_subdirectory(wasm_test)
35+
add_subdirectory(wasm)

source/scripts/python/frontend/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# External dependencies
33
#
44

5-
set(Python_ADDITIONAL_VERSIONS 3.7)
5+
set(Python_ADDITIONAL_VERSIONS 3)
66

77
find_package(PythonInterp REQUIRED)
88

source/scripts/python/wasm_test/CMakeLists.txt renamed to source/scripts/python/wasm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Configure python project
33
#
44

5-
py_project(wasm_test 0.1.0)
5+
py_project(wasm 0.1.0)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python3
22

3-
import wasm_test
3+
import wasm

0 commit comments

Comments
 (0)