Skip to content

Commit 63da63f

Browse files
committed
fix(generation): patch compilation database to remove -isystem
Context: b-com-software-basis/builddefs-qmake#13 b-com-software-basis/xpcf#20
1 parent b94b2f4 commit 63da63f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

generate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ fi
152152
# If this does not work, use path to existing gcc >= 8 on your machine or install one
153153
# look at /usr/lib/x86_64-linux-gnu/ or /home/linuxbrew/.linuxbrew/Cellar/gcc/
154154

155+
# Workaround bug with -isystem and compilation database
156+
# https://github.com/b-com-software-basis/builddefs-qmake/issues/13
157+
# https://github.com/b-com-software-basis/xpcf/issues/20
158+
sed -i "s/-I-isystem/-I/g" `realpath $DATABASE_DIR`/compile_commands.json
159+
sed -i "s/-isystem/-I/g" `realpath $DATABASE_DIR`/compile_commands.json
160+
155161
$XPCF_MODULE_ROOT/xpcf_grpc_gen/${VERSION_XPCF}/bin/x86_64/$LIB_TYPE/release/xpcf_grpc_gen \
156162
--module_uuid $MODULE_UUID \
157163
--name SolARFramework \

0 commit comments

Comments
 (0)