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

Commit

Permalink
adding support for Mac OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
larryk85 committed Nov 19, 2018
1 parent 7214963 commit d15cdd3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libraries/CMakeLists.txt
Expand Up @@ -6,4 +6,4 @@ add_subdirectory(libc++)
add_subdirectory(eosiolib)
add_subdirectory(boost)
add_subdirectory(crt)
add_subdirectory(catch2)
#add_subdirectory(catch2)
10 changes: 5 additions & 5 deletions libraries/crt/_crt.s
Expand Up @@ -3,11 +3,11 @@
.global _mmap
.global setjmp
.global longjmp
.type _start,@function
.type ___putc,@function
.type _mmap,@function
.type setjmp,@function
.type longjmp,@function
#.type _start,@function
#.type ___putc,@function
#.type _mmap,@function
#.type setjmp,@function
#.type longjmp,@function

_start:
mov %rsp, %rbp
Expand Down
1 change: 1 addition & 0 deletions modules/EosioWasmToolchain.cmake.in
Expand Up @@ -31,6 +31,7 @@ set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
# hack for OSX
set(CMAKE_OSX_SYSROOT="@SYSROOT_DIR@")
set(CMAKE_OSX_DEPLOYMENT_TARGET="")

include_directories(
@CDT_ROOT_DIR@/eosio.cdt/include/libcxx
@CDT_ROOT_DIR@/eosio.cdt/include/libc
Expand Down
1 change: 1 addition & 0 deletions tools/include/compiler_options.hpp.in
Expand Up @@ -326,6 +326,7 @@ static void GetCompDefaults(std::vector<std::string>& copts) {
} else {
#ifdef __APPLE__
copts.emplace_back("--target=x86_64-unknown-darwin-macho");
copts.emplace_back("-mmacosx-version-min=10.13");
#else
copts.emplace_back("--target=x86_64-unknown-linux-gnu");
copts.emplace_back("-m64");
Expand Down

0 comments on commit d15cdd3

Please sign in to comment.