fixed: missing symbols in global_vars test

Removed lexer and parser files from compilation target
This commit is contained in:
Sven Vogel 2024-05-27 21:39:24 +02:00
parent 6197acf3b2
commit da963e40b7
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ include_directories(${LLVM_INCLUDE_DIR})
file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/*.c)
list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/main.c)
list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/yacc/parser.tab.c)
list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/lex/lexer.ll.c)
list(REMOVE_ITEM SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/lex/util.c)
add_executable(global_vars
global_vars.c ${SOURCE_FILES})
set_target_properties(global_vars