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

View File

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