File tree Expand file tree Collapse file tree 7 files changed +16
-11
lines changed
Expand file tree Collapse file tree 7 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 241241 }
242242 }
243243
244- %% \subsection {INSTALLATION on WINDOWS }{
245- %% \itemize {
246- %% \item Both building \R and installing packages use the C compiler
247- %% in C23 mode. [ In progress. ]
248- %% }
249- %% }
244+ \subsection {INSTALLATION on WINDOWS }{
245+ \itemize {
246+ \item Both building \R and installing packages use the C compiler
247+ in C23 mode.
248+ }
249+ }
250250
251251 \subsection {DEPRECATED AND DEFUNCT }{
252252 \itemize {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ MkRules: MkRules.rules
5959 @cat MkRules.rules > MkRules
6060endif
6161
62- CFLAGS = -O3 -Wall -pedantic $(EOPTS ) $(SANOPTS ) $(LTO )
62+ CFLAGS = -O3 -Wall -pedantic $(CSTD ) $( EOPTS ) $(SANOPTS ) $(LTO )
6363FFLAGS = -O3 $(EOPTS ) $(LTO )
6464
6565ifdef DEBUG
@@ -104,7 +104,7 @@ Rpwd.exe: front-ends/Rpwd.exe
104104 $(CP ) $< $@
105105
106106front-ends/Rpwd.exe :
107- $(MK ) -C front-ends Rpwd
107+ $(MK ) -C front-ends CSTD= ' $(CSTD) ' Rpwd
108108
109109# # watch out: R.dll and Rblas.dll depend on each other.
110110rbuild :
@@ -204,7 +204,7 @@ libRiconv.dll.a: unicode/iconv.def
204204
205205
206206front-ends :
207- $(MK ) -C front-ends
207+ $(MK ) -C front-ends CSTD= ' $(CSTD) '
208208
209209../extra/tre/libtre.a :
210210 $(MK ) -C ../extra/tre -f Makefile.win
Original file line number Diff line number Diff line change 149149# if you do not have texinfo (default),
150150# TEXI2ANY = missing
151151
152+ # C standard to use by default (override the compiler default)
153+ # CSTD = -std=gnu2x
154+
152155# additional optimization flags (e.g. -mtune=native for a private build)
153156#
154157# -mstackrealign is used to avoid traps due to misaligned addresses with
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ TEXI2DVI = env COMSPEC= texi2dvi
9898MAKEINFO = texi2any
9999EOPTS ?= $(if $(USE_LLVM ) ,,-mfpmath=sse -msse2 -mstackrealign)
100100SANOPTS ?=
101+ CSTD ?= -std=gnu2x
101102OPENMP ?= -fopenmp
102103PTHREAD ?= -pthread
103104ISDIR ?= C:/Program Files (x86)/Inno Setup 6
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ fixetc: $(ETC) ../MkRules Makefile
3030 $(MKDIR ) -p $(R_HOME ) /etc/$(R_ARCH )
3131 $(SED ) -e ' s/WIN = 64/WIN = $(WIN)/' \
3232 -e " s/-O3/-O2/" \
33+ -e " s/@CSTD@/$( CSTD) /" \
3334 -e " s/@EOPTS@/$( EOPTS) /" \
3435 -e " s/@SANOPTS@/$( SANOPTS) /" \
3536 -e " s|BINPREF =|BINPREF ?= $( BINPREF) |" \
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ AR = $(BINPREF)$(LLVMPREF)ar
104104BLAS_LIBS = -L"$(R_HOME ) /$(IMPDIR ) " -lRblas
105105C_VISIBILITY =
106106CC = $(BINPREF )$(CCBASE ) $(M_ARCH )
107- CFLAGS = -O3 -Wall $(DEBUGFLAG ) @EOPTS@ @SANOPTS@ $(LTO )
107+ CFLAGS = -O3 -Wall @CSTD@ $(DEBUGFLAG ) @EOPTS@ @SANOPTS@ $(LTO )
108108CPICFLAGS =
109109CPPFLAGS =
110110CC17 = $(BINPREF )$(CCBASE ) $(M_ARCH )
Original file line number Diff line number Diff line change 11include ../MkRules
22R_HOME = ../../..
33
4- CFLAGS = -O3 -Wall -pedantic
4+ CFLAGS = -O3 -Wall -pedantic $( CSTD )
55ifdef DEBUG
66 CFLAGS += $(G_FLAG )
77 LINKFLAGS =
You can’t perform that action at this time.
0 commit comments