Skip to content

Commit e38c27a

Browse files
authored
rm -fdebug-prefix-map entrys from "CCFLAGS" (espressif#170)
* rm `-fdebug-prefix-map` entrys from "CCFLAGS" from `platformio-build.py` * undo format changes
1 parent 4ab9e16 commit e38c27a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/copy-libs.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ for item in "${@:2:${#@}-5}"; do
101101
elif [ "$prefix" = "-O" ]; then
102102
PIO_CC_FLAGS+="$item "
103103
elif [[ "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then
104-
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" ]]; then
104+
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" && "${item:0:19}" != "-fdebug-prefix-map=" ]]; then
105105
C_FLAGS+="$item "
106106
fi
107107
fi
@@ -115,7 +115,7 @@ set -- $str
115115
for item in "${@:2:${#@}-5}"; do
116116
prefix="${item:0:2}"
117117
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then
118-
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" ]]; then
118+
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" && "${item:0:19}" != "-fdebug-prefix-map=" ]]; then
119119
AS_FLAGS+="$item "
120120
if [[ $C_FLAGS == *"$item"* ]]; then
121121
PIO_CC_FLAGS+="$item "
@@ -134,7 +134,7 @@ set -- $str
134134
for item in "${@:2:${#@}-5}"; do
135135
prefix="${item:0:2}"
136136
if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then
137-
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" ]]; then
137+
if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:20}" != "-fdiagnostics-color=" && "${item:0:19}" != "-fdebug-prefix-map=" ]]; then
138138
CPP_FLAGS+="$item "
139139
if [[ $PIO_CC_FLAGS != *"$item"* ]]; then
140140
PIO_CXX_FLAGS+="$item "
@@ -204,7 +204,7 @@ for item; do
204204
add_next=0
205205
is_script=0
206206
is_dir=0
207-
elif [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:17}" != "-Wl,--start-group" && "${item:0:15}" != "-Wl,--end-group" ]]; then
207+
elif [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" && "${item:0:19}" != "-fdebug-prefix-map=" && "${item:0:17}" != "-Wl,--start-group" && "${item:0:15}" != "-Wl,--end-group" ]]; then
208208
LD_FLAGS+="$item "
209209
PIO_LD_FLAGS+="$item "
210210
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy