Skip to content

Commit 51b0c3e

Browse files
committed
[hosted] Avoid warnings about unsupported -g3 flag
1 parent 43d088d commit 51b0c3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/build_script_generator/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,11 @@ def common_compiler_flags(compiler, target):
233233
"-ffile-prefix-map={project_source_dir}=.",
234234
"-ffile-prefix-map={gccpath}=.",
235235

236-
"-g3",
237236
"-gdwarf-3",
238237
]
239238

240239
if target.identifier["platform"] not in ["hosted"]:
241-
flags["ccflags"].append("-fshort-wchar")
240+
flags["ccflags"].extend(["-fshort-wchar", "-g3"])
242241
if compiler.startswith("gcc"):
243242
flags["ccflags"] += [
244243
"-finline-limit=10000",

0 commit comments

Comments
 (0)