diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-09 14:01:10 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-09 14:01:10 +0800 |
commit | 014d7f494bc403e7204880af676ad7a12827a0d5 (patch) | |
tree | 9f1f653e5028be3ebc5e3b144dc1fb659dfcd7b9 | |
parent | 5fea82e92cd14bfdc50be26eaff1ef6042bf145e (diff) | |
download | mrust-014d7f494bc403e7204880af676ad7a12827a0d5.tar.gz |
main - (minor) Commenting
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index fbb4bfbb..2bce1759 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -31,7 +31,6 @@ int g_debug_indent_level = 0; void init_debug_list()
{
- // TODO: Mutate this map using an environment variable
g_debug_disable_map.insert( "Parse" );
g_debug_disable_map.insert( "LoadCrates" );
g_debug_disable_map.insert( "Expand" );
@@ -63,6 +62,7 @@ void init_debug_list() g_debug_disable_map.insert( "HIR Serialise" );
+ // Mutate this map using an environment variable
const char* debug_string = ::std::getenv("MRUSTC_DEBUG");
if( debug_string )
{
@@ -72,6 +72,7 @@ void init_debug_list() if( end ) {
::std::string s { debug_string, end };
+ // TODO: Emit a warning when this name wasn't in the map?
g_debug_disable_map.erase( s );
debug_string = end + 1;
}
|