Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Weaxs committed Mar 6, 2024
1 parent ab5afed commit accdd55
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_with_graaljdk_22.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
gu install ruby
- name: Compile C++
run: |
cd spring-openjdk/src/test/resources/scripts
cd spring-graaljdk/src/test/resources/scripts
c++ hello.cpp -o hello -fPIC -pie -shared
c++ hello_func.cpp -o hello_func -fPIC -pie -shared
- name: Build with Maven
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_with_graaljdk_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up GraalVM 17
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
java-version: '17.0.7'
distribution: 'graalvm-community'
cache: maven
- name: Compile C++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class PolyglotContextFactory {
@Bean(destroyMethod = "close")
public Context pythonCtx() {
return Context.newBuilder("python")
.option("python.PosixModuleBackend", "native")
.option("python.ForceImportSite", "true")

// python venv exe path
// .option("python.Executable", "/xxx/.python/venv/bin/exe")
.out(PY_OUT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class PolyglotContextFactory {
@Bean(destroyMethod = "close")
public Context pythonCtx() {
return Context.newBuilder("python")
.option("python.PosixModuleBackend", "native")
.option("python.ForceImportSite", "true")

// python venv exe path
// .option("python.Executable", "/xxx/.python/venv/bin/exe")
.out(PY_OUT)
Expand Down

0 comments on commit accdd55

Please sign in to comment.