Remove linker detection

pull/1/head
Stella Laurenzo 2020-04-29 16:33:48 -07:00
parent 6cc38f1e08
commit 03cf785bae
2 changed files with 5 additions and 10 deletions

View File

@ -18,7 +18,12 @@ As I work through things, I've been jotting down some design notes:
## Quick start
```
LLVM_VERSION=10
export CC=clang-$LLVM_VERSION
export CXX=clang++-$LLVM_VERSION
export LDFLAGS=-fuse-ld=$(which ld.lld-$LLVM_VERSION)
export LLVM_SRC_DIR=/path/to/llvm-project
./tools/install_mlir.sh
./tools/cmake_configure.sh

View File

@ -22,16 +22,6 @@ if [ -z "$python_exe" ]; then
exit 1
fi
# Detect linker.
# TODO: Generalize this.
for probe_linker in /usr/bin/ld.lld-10; do
if which ld.lld-10; then
echo "Using linker $probe_linker"
extra_opts+=("-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=$probe_linker")
break
fi
done
set -x
cmake -GNinja \
"-H$td" \