Remove TRACE_PARSER support

Attempting to build with this gave an "undefined reference to `yydebug'"
error (maybe a version issue with bison?), and I don't think it's been
used for recent parser debugging either.
This commit is contained in:
Rangi
2021-11-22 17:31:19 -05:00
committed by Eldred Habert
parent aac839f389
commit c2ca46c27d
2 changed files with 0 additions and 13 deletions

View File

@@ -25,7 +25,6 @@ endif()
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
option(TRACE_PARSER "Trace parser execution" OFF)
if(MSVC)
# MSVC's standard library triggers warning C5105,
@@ -88,7 +87,3 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
message(CHECK_FAIL "no")
endif()
endif()
if(TRACE_PARSER)
target_compile_definitions(rgbasm PRIVATE -DYYDEBUG)
endif()

View File

@@ -52,10 +52,6 @@ char const *__asan_default_options(void) { return "detect_leaks=0"; }
// Unfortunately, macOS still ships 2.3, which is from 2008...
int yyparse(void);
#if defined(YYDEBUG) && YYDEBUG
extern int yydebug;
#endif
FILE * dependfile;
bool generatedMissingIncludes;
bool failedOnMissingInclude;
@@ -161,10 +157,6 @@ int main(int argc, char *argv[])
dependfile = NULL;
#if defined(YYDEBUG) && YYDEBUG
yydebug = 1;
#endif
// Perform some init for below
sym_Init(now);