fixed: missing symbols in global_vars test
Removed lexer and parser files from compilation target
This commit is contained in:
parent
6197acf3b2
commit
da963e40b7
|
@ -30,6 +30,9 @@ include_directories(${LLVM_INCLUDE_DIR})
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/src/*.c)
|
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/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
|
add_executable(global_vars
|
||||||
global_vars.c ${SOURCE_FILES})
|
global_vars.c ${SOURCE_FILES})
|
||||||
set_target_properties(global_vars
|
set_target_properties(global_vars
|
||||||
|
|
Loading…
Reference in New Issue