mirror of https://github.com/llvm/torch-mlir
Remove linker detection
parent
6cc38f1e08
commit
03cf785bae
|
@ -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
|
||||
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue