Skip to content

Commit

Permalink
build: Try using lld as the linker for certain things
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawning committed Jun 29, 2021
1 parent 76f6fff commit 4031355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .buildkite/code.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ steps:
####################
# Runtime build jobs
####################
- label: Build key manager runtime
- label: Build key manager and runtime
command:
- export RUSTFLAGS="-C link-arg=-fuse-ld=lld"
- .buildkite/rust/build_runtime.sh tests/runtimes/simple-keymanager
- .buildkite/rust/build_runtime.sh tests/runtimes/simple-keyvalue

Expand All @@ -168,6 +169,7 @@ steps:
- label: Test Rust crates
command:
# Build storage interoperability test helpers first.
- export RUSTFLAGS="-C link-arg=-fuse-ld=lld"
- make build-helpers
- export OASIS_STORAGE_PROTOCOL_SERVER_BINARY=$(realpath go/storage/mkvs/interop/mkvs-test-helpers)
- .buildkite/rust/test_generic.sh .
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/rust/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ set -x
export CARGO_TARGET_DIR=/tmp/coverage_target

# Required as tarpaulin doesn't honor .cargo/config.
export RUSTFLAGS="-C target-feature=+aes,+ssse3"
export RUSTFLAGS="$RUSTFLAGS -C target-feature=+aes,+ssse3"

# Name the current commit so Tarpaulin can detect it correctly.
git checkout -B ${BUILDKITE_BRANCH}
Expand Down
2 changes: 1 addition & 1 deletion docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG JEMALLOC_CHECKSUM=34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update -qq && apt-get upgrade -qq && apt-get install -qq \
build-essential git gdb cmake \
build-essential git gdb cmake lld \
curl wget unzip \
pkg-config software-properties-common \
python python-pyelftools \
Expand Down

0 comments on commit 4031355

Please sign in to comment.