From 5006226e945fc645e6d9b21252c9eee53cc191cc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 23 Sep 2018 12:22:37 +0200 Subject: Fix various things, add generated zig header files to global include Fix compile_commands.json missing build steps. Fix c includes -> zig includes flags. Fix crash when running sibs new/init without defining lang. Add generated zig header files to global include so they can be used from c/c++. Add zig and zig/c (using zig and c in the same project) examples. --- cmake/build_debug.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 cmake/build_debug.sh (limited to 'cmake') diff --git a/cmake/build_debug.sh b/cmake/build_debug.sh new file mode 100755 index 0000000..45dceeb --- /dev/null +++ b/cmake/build_debug.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e + +scriptpath="$(dirname "$0")" +mkdir -p "$scriptpath/build/debug" +cd "$scriptpath/build/debug" +cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../../../ +ninja +echo "Debug build success" -- cgit v1.2.3