Skip to content

Commit

Permalink
CSTD: use gnu17 as our new C standard
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Feb 12, 2025
1 parent c5abf94 commit 086ba38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ DEPFILES_NONEMPTY= $(DEPFILES) /nonexistent
.SUFFIXES: .pico .in .bin .binin .so.1 .so.1in .suppress.in .suppress

.c.o:
$(CC) -Wall -Wextra -std=gnu11 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpo -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $<
$(CC) -Wall -Wextra -std=gnu17 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpo -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $<
mv $*.Tpo $*.Po

.c.pico:
$(CC) -Wall -Wextra -std=gnu11 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpico -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $(SHOBJ_CFLAGS) $<
$(CC) -Wall -Wextra -std=gnu17 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpico -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $(SHOBJ_CFLAGS) $<
mv $*.Tpico $*.Ppico

.in:
Expand Down

0 comments on commit 086ba38

Please sign in to comment.