-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a link-time flag to en/disable the RTS options
If RTS options are disabled then: * The ghc_rts_opts C code variable is processed as normal * The GHCRTS environment variable is ignored and, if it is defined, a warning is emitted * The +RTS flag gives an error and terminates the program
- Loading branch information
Showing
5 changed files
with
67 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* ----------------------------------------------------------------------------- | ||
* | ||
* (c) The GHC Team, 2010 | ||
* | ||
* En/disable RTS options | ||
* | ||
* ---------------------------------------------------------------------------*/ | ||
|
||
#ifndef RTSOPTS_H | ||
#define RTSOPTS_H | ||
|
||
extern const rtsBool rtsOptsEnabled; | ||
|
||
#endif /* RTSOPTS_H */ |
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,13 @@ | ||
/* ----------------------------------------------------------------------------- | ||
* | ||
* (c) The GHC Team 2010 | ||
* | ||
* En/disable RTS options | ||
* | ||
* ---------------------------------------------------------------------------*/ | ||
|
||
#include "Rts.h" | ||
#include "RtsOpts.h" | ||
|
||
const rtsBool rtsOptsEnabled = rtsFalse; | ||
|