Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builds/posix/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ master_process:
# even if gpre itself was not rebuilt
-$(RM) $(GPRE_CURRENT)
(cd $(BIN); $(LN) $(notdir $(GPRE)) $(notdir $(GPRE_CURRENT)))
ifeq ($(IsDeveloper), Y)
ifeq ($(RegenCodes),Y)
# In developer mode we must regenerate various files in include/gen
$(MAKE) codes
endif
Expand Down
5 changes: 5 additions & 0 deletions builds/posix/make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ PLUSPLUS_FLAGS:= -fno-rtti -std=c++17
# If this is defined then we use special rules useful for developers only
IsDeveloper = @DEVEL_FLG@

RegenCodes = @REGEN_CODES_FLG@
ifeq ($(IsDeveloper),Y)
RegenCodes := Y
endif

CpuType=@CPU_TYPE@
PLATFORM=@PLATFORM@
SFIO_EXAMPLES=@SFIO_EXAMPLES@
Expand Down
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,16 @@ AC_ARG_ENABLE(developer,
esac])
AC_SUBST(DEVEL_FLG)

REGEN_CODES_FLG=$DEVEL_FLG
AC_ARG_ENABLE(regen-codes,
[ --enable-regen-codes re-generate codes (default same as --enable developer)],
[case "$enableval" in
yes) REGEN_CODES_FLG=Y;;
no) REGEN_CODES_FLG=N;;
*) AC_MSG_ERROR(bad value '${enableval}' for --enable-regen-codes);;
esac])
AC_SUBST(REGEN_CODES_FLG)

CROSS=
IS_CROSS=N
AC_ARG_WITH(cross-build,
Expand Down