Skip to content

Commit ccce4e5

Browse files
committed
Use refresh_compile_commands from the script
1 parent 0f7eaab commit ccce4e5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
sh_binary(
22
name = "qac_compile_commands",
33
srcs = ["qac_compile_commands.sh"],
4+
args = ["$(location //:refresh_compile_commands)"],
5+
data = ["//:refresh_compile_commands"],
46
)

qac_compile_commands.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#! /bin/bash
2-
# This one-line script turns the -isystem flag into the -I flag. This is needed for Helix QAC to work properly.
2+
# This script turns the -isystem flag into the -I flag.
3+
# This is needed for Helix QAC to work properly.
4+
# Usage: qac_compile_commands <REFRESH_COMPILE_COMMANDS>
35

6+
REFRESH_COMPILE_COMMANDS=$(realpath $1)
7+
8+
$REFRESH_COMPILE_COMMANDS
49
sed -i 's/-isystem/-I/' $BUILD_WORKSPACE_DIRECTORY/compile_commands.json

0 commit comments

Comments
 (0)