This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
forked from twitter/pelikan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
a6a54d9 remove endian-specific logic from str*cmp (twitter#177) 4c0668b epoll_create* ignores size hint in newer kernels, switch to new API (twitter#179) c9c5ee5 improve cc_bstring string literal and cstring names (twitter#176) 0184d73 Add unit tests for buffer, fix buf/dbuf bugs and refactor (twitter#174) d7dab43 create a .cargo/config so intellij uses the same target dir as cmake (twitter#173) e710712 use accept4 for tcp_accept when available (twitter#171) 21ba10e Remove cargo lock for shared lib, closes twitter#169 (twitter#172) 24660f1 update style guide (twitter#170) 17baf1e Per thread logging (twitter#168) git-subtree-dir: deps/ccommon git-subtree-split: a6a54d9
- Loading branch information
Yao Yue
committed
Oct 26, 2018
1 parent
b93c69d
commit b9e0086
Showing
42 changed files
with
2,511 additions
and
1,478 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
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,55 @@ | ||
#!/bin/bash | ||
|
||
## This file is potentially useful for doing a clean environment build on MacOS ## | ||
## This is my personal way of running the build, YMMV - jsimms ## | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
die() { echo "fatal: $*" >&2; exit 1; } | ||
|
||
TOPLEVEL=$(git -C "$(cd "$(dirname "$0")" >/dev/null || exit 1; pwd)" rev-parse --show-toplevel) || die "TOPLEVEL fail" | ||
|
||
cd "$TOPLEVEL" | ||
|
||
TEMP="$(mktemp -d -t TEMP.XXXXXXX)" || die "failed to make tmpdir" | ||
cleanup() { [[ -n "${TEMP:-}" ]] && rm -rf "${TEMP}"; } | ||
trap cleanup EXIT | ||
|
||
BUILD_PATH=( | ||
"$HOME/.cargo/bin" | ||
"/usr/local/bin" | ||
"/usr/local/sbin" | ||
"/usr/bin" | ||
"/usr/sbin" | ||
"/bin" | ||
"/sbin" | ||
"/opt/X11/bin" | ||
"/usr/X11R6/bin" | ||
) | ||
|
||
PATH=$(echo "${BUILD_PATH[@]}"|tr ' ' ':') | ||
|
||
cat >&2 <<EOS | ||
CC=${CC:-} | ||
CFLAGS=${CFLAGS:-} | ||
LDFLAGS=${LDFLAGS:-} | ||
PATH=${PATH:-} | ||
EOS | ||
|
||
CMAKEFLAGS=( | ||
-DHAVE_RUST=yes | ||
-DRUST_VERBOSE_BUILD=yes | ||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON | ||
) | ||
|
||
BUILD_DIR="${BUILD_DIR:-$TEMP}" | ||
|
||
mkdir -p "$BUILD_DIR" && ( | ||
cd "$BUILD_DIR" && | ||
cmake "${CMAKEFLAGS[@]}" "$TOPLEVEL" && | ||
make -j all && | ||
make check && | ||
cd rust && | ||
cargo test | ||
) |
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.