Add initial tokenizer and tests
This commit is contained in:
@@ -8,10 +8,10 @@ build_dir = "build/default/"
|
||||
src_dir = "src/"
|
||||
|
||||
program_sources = ["src/main.c"]
|
||||
lib_srcs = []
|
||||
lib_srcs = ["src/parse.c", "src/memory.c"]
|
||||
lib_includes = ["src/"]
|
||||
|
||||
test_srcs = [""]
|
||||
test_srcs = ["test/test_parse.c"]
|
||||
test_lib_srcs = ["third-party/unity/src/unity.c"]
|
||||
test_lib_includes = ["third-party/unity/src/"]
|
||||
|
||||
@@ -20,7 +20,7 @@ test_lib_includes = ["third-party/unity/src/"]
|
||||
#
|
||||
|
||||
VariantDir(build_dir, ".", duplicate=0)
|
||||
env = Environment(CPPPATH=lib_includes, COMPILATIONDB_USE_ABSPATH=True)
|
||||
env = Environment(CPPPATH=lib_includes, COMPILATIONDB_USE_ABSPATH=True, CCFLAGS=["-ggdb", "-O0"])
|
||||
env.Tool('compilation_db')
|
||||
env.CompilationDatabase()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user