From: Uwe Hermann Date: Mon, 20 Mar 2017 23:43:23 +0000 (+0100) Subject: sigrok-cross-linux: PV: Add -DCMAKE_EXPORT_COMPILE_COMMANDS=y. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=803377fc73119c7da421b92f66d39accff24e92f;p=sigrok-util.git sigrok-cross-linux: PV: Add -DCMAKE_EXPORT_COMPILE_COMMANDS=y. This creates a compilation database which can be used with e.g. clang-tidy. --- diff --git a/cross-compile/linux/sigrok-cross-linux b/cross-compile/linux/sigrok-cross-linux index 2e5cdc0..8db6f48 100755 --- a/cross-compile/linux/sigrok-cross-linux +++ b/cross-compile/linux/sigrok-cross-linux @@ -149,7 +149,7 @@ $GIT_CLONE $REPO_BASE/pulseview cd pulseview mkdir build cd build -PKG_CONFIG_PATH=$P $SB cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y .. +PKG_CONFIG_PATH=$P $SB cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DDISABLE_WERROR=y -DENABLE_TESTS=y -DCMAKE_EXPORT_COMPILE_COMMANDS=y .. $SB make $PARALLEL $V make install $V $SB make test $V