Work around an issue with clang-include-cleaner.
Problem has been reported here: https://github.com/llvm/llvm-project/issues/110843 Change-Id: Iaa578a17a724a80ea350db1494229c5af4c454b3 Bug: b/236227627 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364463 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Jeremy Leconte <jleconte@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43154}
This commit is contained in:
parent
c32df1e849
commit
89a552a5a3
@ -102,7 +102,11 @@ if [ -z $FILE ] || [ ! -f $FILE ]; then
|
||||
error "File $FILE is not found"
|
||||
fi
|
||||
|
||||
OUTPUT=$($CLEANER -p $WORKDIR $INCLUDE_ARGS $COMMAND $FILE)
|
||||
# Run the command in $WORKDIR because of this reported issue:
|
||||
# https://github.com/llvm/llvm-project/issues/110843
|
||||
cd $WORKDIR
|
||||
OUTPUT=$(../../$CLEANER $INCLUDE_ARGS $COMMAND ../../$FILE)
|
||||
cd -
|
||||
|
||||
# include-cleaner does not support custom mappings for certain deps
|
||||
# this ensures that the gtest/gmock deps it inserts are replaced
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user