Limit frame size restriction to internal repo

Fixes #91
This commit is contained in:
Justine Tunney 2021-03-02 01:04:18 -08:00
parent 8a6a1e25b1
commit 4651962070
2 changed files with 15 additions and 14 deletions

View file

@ -137,6 +137,7 @@ MATHEMATICAL = \
-fwrapv -fwrapv
DEFAULT_CPPFLAGS = \ DEFAULT_CPPFLAGS = \
-DCOSMO \
-DMODE='"$(MODE)"' \ -DMODE='"$(MODE)"' \
-DIMAGE_BASE_VIRTUAL=$(IMAGE_BASE_VIRTUAL) \ -DIMAGE_BASE_VIRTUAL=$(IMAGE_BASE_VIRTUAL) \
-nostdinc \ -nostdinc \

View file

@ -730,7 +730,7 @@ typedef uint64_t uintmax_t;
#pragma GCC diagnostic error "-Wredundant-decls" #pragma GCC diagnostic error "-Wredundant-decls"
#if __GNUC__ >= 6 #if __GNUC__ >= 6
#pragma GCC diagnostic error "-Wnonnull-compare" #pragma GCC diagnostic error "-Wnonnull-compare"
#if !defined(MODE_DBG) && !defined(STACK_FRAME_UNLIMITED) #if defined(COSMO) && !defined(MODE_DBG) && !defined(STACK_FRAME_UNLIMITED)
#pragma GCC diagnostic error "-Wframe-larger-than=4096" #pragma GCC diagnostic error "-Wframe-larger-than=4096"
#if __GNUC__ >= 9 #if __GNUC__ >= 9
#pragma GCC diagnostic error "-Walloca-larger-than=1024" #pragma GCC diagnostic error "-Walloca-larger-than=1024"