mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
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:
@@ -25,7 +25,6 @@ endif()
|
|||||||
|
|
||||||
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
|
option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
|
||||||
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
|
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
|
||||||
option(TRACE_PARSER "Trace parser execution" OFF)
|
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# MSVC's standard library triggers warning C5105,
|
# MSVC's standard library triggers warning C5105,
|
||||||
@@ -88,7 +87,3 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|||||||
message(CHECK_FAIL "no")
|
message(CHECK_FAIL "no")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TRACE_PARSER)
|
|
||||||
target_compile_definitions(rgbasm PRIVATE -DYYDEBUG)
|
|
||||||
endif()
|
|
||||||
|
|||||||
@@ -52,10 +52,6 @@ char const *__asan_default_options(void) { return "detect_leaks=0"; }
|
|||||||
// Unfortunately, macOS still ships 2.3, which is from 2008...
|
// Unfortunately, macOS still ships 2.3, which is from 2008...
|
||||||
int yyparse(void);
|
int yyparse(void);
|
||||||
|
|
||||||
#if defined(YYDEBUG) && YYDEBUG
|
|
||||||
extern int yydebug;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
FILE * dependfile;
|
FILE * dependfile;
|
||||||
bool generatedMissingIncludes;
|
bool generatedMissingIncludes;
|
||||||
bool failedOnMissingInclude;
|
bool failedOnMissingInclude;
|
||||||
@@ -161,10 +157,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
dependfile = NULL;
|
dependfile = NULL;
|
||||||
|
|
||||||
#if defined(YYDEBUG) && YYDEBUG
|
|
||||||
yydebug = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Perform some init for below
|
// Perform some init for below
|
||||||
sym_Init(now);
|
sym_Init(now);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user