Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6100 from EOSIO/fix/remove_llvm_link
Browse files Browse the repository at this point in the history
Remove llvm@4 force link for Mac OS X builds
  • Loading branch information
b1bart authored Oct 25, 2018
2 parents e3b10cd + 64fce6b commit bcb62ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/libraries/fc/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")

if (UNIX)
if (APPLE)
if (LLVM_DIR STREQUAL "" OR NOT LLVM_DIR)
set(LLVM_DIR "/usr/local/Cellar/llvm@4/4.0.1/lib/cmake/llvm")
endif()
endif()
endif()

include( GNUInstallDirs )
include( VersionMacros )
include( SetupTargetMacros )
Expand Down
4 changes: 3 additions & 1 deletion scripts/eosio_build_darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@
printf "\\tExiting now.\\n\\n"
exit 1;
fi
if ! "${BREW}" unlink {DEP} && "${BREW}" link --force ${DEP}
if [[ "$DEP" == "llvm@4" ]]; then
"${BREW}" unlink ${DEP}
elif ! "${BREW}" unlink ${DEP} && "${BREW}" link --force ${DEP}
then
printf "\\tHomebrew exited with the above errors.\\n"
printf "\\tExiting now.\\n\\n"
Expand Down

0 comments on commit bcb62ff

Please sign in to comment.