Skip to content

Commit

Permalink
export gopath for cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Feb 19, 2024
1 parent 7f56c46 commit ed809e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ if (BUILD_DEPS)
if (CRT_FIPS)
set(FIPS ON CACHE BOOL "FIPS compliance")
set(PERL_EXECUTABLE "perl")
if (DEFINED ENV{GO_PATH})
set(GO_EXECUTABLE $ENV{GO_PATH}/go)
message(STATUS "Overriding GO_EXECUTABLE to ${GO_EXECUTABLE}")
endif()
else()
set(DISABLE_PERL ON CACHE BOOL "Disable codegen")
set(DISABLE_GO ON CACHE BOOL "Disable codegen")
Expand Down
4 changes: 3 additions & 1 deletion builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"build_dir": "target/cmake-build",
"build_env": {
"JAVA_HOME": "{java_home}",
"OVERRIDE_JAVA_HOME": "{java_home}"
"OVERRIDE_JAVA_HOME": "{java_home}",
"GO_PATH": "{go_path}",
"GOPROXY": "https://goproxy.io,direct"
},
"test_env": {
"JAVA_HOME": "{java_home}",
Expand Down

0 comments on commit ed809e4

Please sign in to comment.