Update readme with simple config

pull/1/head
Stella Laurenzo 2020-04-26 16:32:10 -07:00
parent 36717e97e1
commit ac302ea916
2 changed files with 10 additions and 10 deletions

View File

@ -2,16 +2,16 @@
## Scratch-pad of build configurations that have worked
### VSCode settings for configuring CMake
## Quick start
```json
"cmake.configureArgs": [
"-DLLVM_TARGETS_TO_BUILD=X86",
"-DLLVM_ENABLE_PROJECTS=mlir;npcomp",
"-DPYTHON_EXECUTABLE=/bin/python3",
"-DLLVM_EXTERNAL_PROJECTS=npcomp",
"-DLLVM_ENABLE_ASSERTIONS:BOOL=ON"
]
```
export LLVM_SRC_DIR=/path/to/llvm-project
./tools/install_mlir.sh
./tools/cmake_configure.sh
cd build
ninja
./python/run_tests.py
```
### Installing pybind11

View File

@ -16,7 +16,7 @@ TEST_MODULES = (
# Compute PYTHONPATH for sub processes.
DIRSEP = ":" if os.path.pathsep == "/" else ";"
PYTHONPATH = os.path.dirname(__file__)
PYTHONPATH = os.path.abspath(os.path.dirname(__file__))
if "PYTHONPATH" in os.environ:
PYTHONPATH = PYTHONPATH + DIRSEP + os.environ["PYTHONPATH"]
CHILD_ENVIRON = dict(os.environ)