-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make the stack size limit a Nim define and use it in "config.nims" for the Windows C compiler flag and in "beacon_node.nim" for the POSIX runtime setting. - warn when the open file limit is bellow 1024 (macOS, by default) - increase the macOS open file limit in Travis - add "-Wstack-usage=..." C compiler flag. No GCC warnings visible at the stack limit we set, but any would be visible by defining "cwarnings" in Nim.
- Loading branch information
1 parent
519787b
commit a02e27f
Showing
6 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# can't do this in "config.nims", probably due to parsing order | ||
@if cwarnings: | ||
@if windows: | ||
gcc.options.always = "-mno-ms-bitfields -Wno-all -Wno-discarded-qualifiers -Wno-incompatible-pointer-types" | ||
@else: | ||
gcc.options.always = "-Wno-all -Wno-discarded-qualifiers -Wno-incompatible-pointer-types" | ||
@end | ||
@end | ||
|
Can you test if instantiating
BeaconState
as a stack variable anywhere triggers this warning?