Skip to content

Commit

Permalink
LINKER:-rpath=\$ORIGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
refvalue committed Nov 13, 2024
1 parent 43d87ee commit 2083b3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/ESLangCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ function(es_deploy_lang_compiler base_uri)

FetchContent_MakeAvailable(${component_name})
set(compiler_executable ${CMAKE_BINARY_DIR}/_deps/${component_name}-src/${file_name}${CMAKE_EXECUTABLE_SUFFIX})

if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
string(APPEND compiler_executable ".sh")
endif()

set(ES_LANG_COMPILER_EXECUTABLE ${compiler_executable} PARENT_SCOPE)
endfunction()

Expand Down
1 change: 1 addition & 0 deletions tool/lang-compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
PRIVATE
LINKER:--exclude-libs,ALL
LINKER:-rpath=.
LINKER:-rpath=\$ORIGIN
$<$<CONFIG:RELEASE>:-s>
)

Expand Down

0 comments on commit 2083b3a

Please sign in to comment.