Skip to content

Commit 0acd21a

Browse files
authored
Avoid redundantly specifying opt level in ports (#24134)
The default is -O2
1 parent df69e2c commit 0acd21a

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

tools/ports/libmodplug.py

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def create(final):
3030
'-DHAVE_CONFIG_H',
3131
'-DSYM_VISIBILITY',
3232
'-std=gnu++14',
33-
'-O2',
3433
'-fno-exceptions',
3534
'-ffast-math',
3635
'-fno-common',

tools/ports/mpg123.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def create(final):
3232
flags = [
3333
'-DOPT_GENERIC',
3434
'-DREAL_IS_FLOAT',
35-
'-O2',
3635
'-fomit-frame-pointer',
3736
'-finline-functions',
3837
'-ffast-math',

tools/ports/sdl2_image.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def create(final):
6161
IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_webp.c IMG_ImageIO.m
6262
IMG_avif.c IMG_jxl.c IMG_svg.c IMG_qoi.c'''.split()
6363

64-
flags = ['-O2', '-sUSE_SDL=2', '-Wno-format-security']
64+
flags = ['-sUSE_SDL=2', '-Wno-format-security']
6565

6666
formats = get_formats(settings)
6767

tools/ports/sdl2_mixer.py

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def create(final):
4343
source_path = ports.get_dir('sdl2_mixer', 'SDL_mixer-' + TAG)
4444
flags = [
4545
'-sUSE_SDL=2',
46-
'-O2',
4746
'-DMUSIC_WAV',
4847
]
4948

0 commit comments

Comments
 (0)