We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f7eaab commit ccce4e5Copy full SHA for ccce4e5
BUILD.bazel
@@ -1,4 +1,6 @@
1
sh_binary(
2
name = "qac_compile_commands",
3
srcs = ["qac_compile_commands.sh"],
4
+ args = ["$(location //:refresh_compile_commands)"],
5
+ data = ["//:refresh_compile_commands"],
6
)
qac_compile_commands.sh
@@ -1,4 +1,9 @@
#! /bin/bash
-# This one-line script turns the -isystem flag into the -I flag. This is needed for Helix QAC to work properly.
+# This script turns the -isystem flag into the -I flag.
+# This is needed for Helix QAC to work properly.
+# Usage: qac_compile_commands <REFRESH_COMPILE_COMMANDS>
+REFRESH_COMPILE_COMMANDS=$(realpath $1)
7
+
8
+$REFRESH_COMPILE_COMMANDS
9
sed -i 's/-isystem/-I/' $BUILD_WORKSPACE_DIRECTORY/compile_commands.json
0 commit comments