diff --git a/InstallClang.txt b/InstallClang.txt index 6eaa585114b..60c07eae670 100644 --- a/InstallClang.txt +++ b/InstallClang.txt @@ -2,11 +2,9 @@ macro(install_symlink from to) install(CODE "execute_process(COMMAND mkdir -p ${SDK_INSTALL_PREFIX}/bin) execute_process(COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX}/bin) - execute_process(COMMAND ln -sf ${SDK_INSTALL_PREFIX}/bin/${from} ${CMAKE_INSTALL_PREFIX}/bin/${to})") + execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../eosio.wasmsdk/bin/${from} ${CMAKE_INSTALL_PREFIX}/bin/${to})") endmacro() -install_symlink(llvm-ranlib eosio.ranlib) - # install clang and llvm set(CLANG_BIN_DIR ${CMAKE_BINARY_DIR}/EosioClang-prefix/src/EosioClang-build/bin) install(FILES ${CLANG_BIN_DIR}/llvm-ranlib