File: build.sh

package info (click to toggle)
bismuth 3.1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,704 kB
  • sloc: cpp: 5,774; sh: 165; makefile: 32; xml: 10
file content (12 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env sh

# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@gikari.com>
# SPDX-License-Identifier: MIT

set -e

echo "🏗️ Building Bismuth..."

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