Created
July 26, 2022 17:34
-
-
Save pashu123/b850fd3a874564f72fa23ce097d17957 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
# See https://llvm.org/LICENSE.txt for license information. | |
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
# Also available under a BSD-style license. See LICENSE. | |
# Simple script that does a CMake configure of this project as an external | |
# LLVM project so it can be tested in isolation to larger assemblies. | |
# This is meant for CI's and project maintainers. | |
## Builds iree with the python bindings. | |
# PYTHONPATH=/home/prashant/iree-build/compiler/bindings/python:/home/prashant/iree-build/runtime/bindings/python | |
set -eu -o errtrace | |
project_dir="$HOME/iree/" | |
build_dir="$HOME/iree-build/" | |
cmake -GNinja -B"$build_dir" -S"$project_dir" \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DCMAKE_LINKER=lld \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | |
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ | |
-DIREE_BUILD_PYTHON_BINDINGS=ON \ | |
-DPython3_EXECUTABLE="$(which python)" \ | |
-DIREE_ENABLE_ASSERTIONS=ON \ | |
-DIREE_HAL_DRIVER_CUDA=ON \ | |
-DIREE_HAL_DRIVER_VULKAN=ON \ | |
-DIREE_ENABLE_LLD=ON | |
cd "$build_dir" | |
cmake --build . | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment