You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating deprecated GN flag: export-compile-commands (#35429)
* changing deprecated GN flag
* Restyled by shfmt
* Restyled by autopep8
* removeing quotes from wildcard
* more conversions
* Updating dry-run golden standard files
---------
Co-authored-by: Restyled.io <commits@restyled.io>
Copy file name to clipboardexpand all lines: scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
cd "{root}"
3
3
4
4
# Generating linux-x64-all-clusters-coverage
5
-
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage
5
+
gn gen --check --fail-on-unused-args '--add-export-compile-commands=*' --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage
Copy file name to clipboardexpand all lines: scripts/examples/gn_stm32_example.sh
+3-3
Original file line number
Diff line number
Diff line change
@@ -176,14 +176,14 @@ else
176
176
BUILD_DIR=$OUTDIR/$STM32_BOARD
177
177
echo BUILD_DIR="$BUILD_DIR"
178
178
if [ "$USE_WIFI"==true ];then
179
-
gn gen --check --fail-on-unused-args --export-compile-commands --root="$ROOT" --dotfile="$ROOT"/build_for_wifi_gnfile.gn --args="stm32_board=\"$STM32_BOARD\"$optArgs""$BUILD_DIR"
179
+
gn gen --check --fail-on-unused-args --add-export-compile-commands=* --root="$ROOT" --dotfile="$ROOT"/build_for_wifi_gnfile.gn --args="stm32_board=\"$STM32_BOARD\"$optArgs""$BUILD_DIR"
180
180
else
181
181
# thread build
182
182
#
183
183
if [ -z"$optArgs" ];then
184
-
gn gen --check --fail-on-unused-args --export-compile-commands --root="$ROOT" --args="stm32_board=\"$STM32_BOARD\" treat_warnings_as_errors=false" --ide=json "$BUILD_DIR"
184
+
gn gen --check --fail-on-unused-args --add-export-compile-commands=* --root="$ROOT" --args="stm32_board=\"$STM32_BOARD\" treat_warnings_as_errors=false" --ide=json "$BUILD_DIR"
185
185
else
186
-
gn gen --check --fail-on-unused-args --export-compile-commands --root="$ROOT" --args="stm32_board=\"$STM32_BOARD\"$optArgs treat_warnings_as_errors=false" --ide=json "$BUILD_DIR"
186
+
gn gen --check --fail-on-unused-args --add-export-compile-commands=* --root="$ROOT" --args="stm32_board=\"$STM32_BOARD\"$optArgs treat_warnings_as_errors=false" --ide=json "$BUILD_DIR"
0 commit comments