This repository has been archived by the owner on Sep 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/cmu-db/peloton into txnct…
…x/readonly
- Loading branch information
Showing
40 changed files
with
6,000 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# - Try to find Libffi | ||
# | ||
# A Portable Foreign Function Interface Library (https://sourceware.org/libffi) | ||
# | ||
# Usage: | ||
# LIBFFI_INCLUDE_DIRS, location of header files | ||
# LIBFFI_LIBRARIES, location of library | ||
# LIBFFI_FOUND, indicates if libffi was found | ||
|
||
# Look for the header file. | ||
execute_process(COMMAND brew --prefix libffi OUTPUT_VARIABLE LIBFFI_BREW_PREFIX) | ||
|
||
find_library(LIBFFI_LIBRARY NAMES ffi libffi | ||
PATHS /usr /usr/local /opt/local | ||
PATH_SUFFIXES lib lib64 x86_64-linux-gnu lib/x86_64-linux-gnu | ||
) | ||
|
||
find_path(LIBFFI_INCLUDE_DIR ffi.h | ||
PATHS /usr /usr/local /opt/local /usr/include/ffi | ||
PATH_SUFFIXES include include/ffi include/x86_64-linux-gnu x86_64-linux-gnu | ||
HINT LIBFFI_BREW_PREFIX | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LIBFFI DEFAULT_MSG LIBFFI_LIBRARY LIBFFI_INCLUDE_DIR) | ||
|
||
|
||
# Copy the results to the output variables. | ||
IF(LIBFFI_FOUND) | ||
SET(LIBFFI_LIBRARIES ${LIBFFI_LIBRARY}) | ||
SET(LIBFFI_INCLUDE_DIRS ${LIBFFI_INCLUDE_DIR}) | ||
ELSE(LIBFFI_FOUND) | ||
SET(LIBFFI_LIBRARIES) | ||
SET(LIBFFI_INCLUDE_DIRS) | ||
ENDIF(LIBFFI_FOUND) | ||
|
||
MARK_AS_ADVANCED(LIBFFI_INCLUDE_DIRS LIBFFI_LIBRARIES) | ||
|
||
message(STATUS "Found Libffi (include: ${LIBFFI_INCLUDE_DIRS}, library: ${LIBFFI_LIBRARIES})") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,8 @@ if [ "$DISTRO" = "UBUNTU" ]; then | |
libedit-dev \ | ||
libssl-dev \ | ||
postgresql-client \ | ||
libffi6 \ | ||
libffi-dev \ | ||
libtbb-dev \ | ||
python3-pip \ | ||
curl \ | ||
|
@@ -219,6 +221,7 @@ elif [ "$DISTRO" = "DARWIN" ]; then | |
brew install libedit | ||
brew install [email protected] | ||
brew install postgresql | ||
brew install libffi | ||
brew install tbb | ||
brew install curl | ||
brew install wget | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.