From da963e40b760af0f60669215b3265ba6bf9631ef Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 27 May 2024 21:39:24 +0200 Subject: [PATCH] fixed: missing symbols in global_vars test Removed lexer and parser files from compilation target --- tests/llvm/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/llvm/CMakeLists.txt b/tests/llvm/CMakeLists.txt index 1fc14cc..bc72f78 100644 --- a/tests/llvm/CMakeLists.txt +++ b/tests/llvm/CMakeLists.txt @@ -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