bismuth/scripts/build.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
365 B
Bash
Raw Normal View History

2021-11-01 19:09:12 +03:00
#!/usr/bin/env sh
2022-03-03 19:13:50 +03:00
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@gikari.com>
2021-11-01 19:09:12 +03:00
# SPDX-License-Identifier: MIT
set -e
echo "🏗️ Building Bismuth..."
2021-11-01 19:09:12 +03:00
cmake -S "." -B "build" -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build "build"
ln -sf "$PWD/build/compile_commands.json" "./compile_commands.json" # For LSP