Skip to content

Commit

Permalink
Update readme with simple config
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaraccident committed Apr 26, 2020
1 parent 36717e9 commit ac302ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

## Scratch-pad of build configurations that have worked

### VSCode settings for configuring CMake

```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"
]
## Quick start

```
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
Expand Down
2 changes: 1 addition & 1 deletion python/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# 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)
Expand Down

0 comments on commit ac302ea

Please sign in to comment.