diff --git a/bin/bld_core.sh b/bin/bld_core.sh index fe9eeac..f770032 100644 --- a/bin/bld_core.sh +++ b/bin/bld_core.sh @@ -524,7 +524,6 @@ elif [ "$command" == "link" ]; then elif [ "$command" == "lib" ]; then bld_lib ${args[@]} elif [ "$command" == "unit" ]; then - echo bld_unit ${args[@]} bld_unit ${args[@]} else echo "'$command' not a recognized command" diff --git a/bin/build_samples.sh b/bin/build_samples.sh new file mode 100644 index 0000000..aac0637 --- /dev/null +++ b/bin/build_samples.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +###### Get Paths ############################################################## +og_path=$PWD +cd "$(dirname "$0")" +cd .. + +###### Script ################################################################# +echo "~~~ Build All Samples ~~~" + +bin/bld_core.sh unit old_style_custom_layer samples/old_style_custom_layer.c +bin/bld_core.sh unit toy_language samples/toy_language/toy_language.c +bin/bld_core.sh unit static_site_generator samples/static_site_generator/static_site_generator.c +bin/bld_core.sh unit output_parse samples/output_parse/output_parse.c +bin/bld_core.sh unit c_code_generation samples/c_code_generation.c +bin/bld_core.sh unit node_errors samples/node_errors/node_errors.c +bin/bld_core.sh unit parse_check samples/parse_check.c + +###### Restore Path ########################################################### +cd $og_path diff --git a/bin/compiler_flags.txt b/bin/compiler_flags.txt index 32020ee..5c70a91 100644 --- a/bin/compiler_flags.txt +++ b/bin/compiler_flags.txt @@ -1,2 +1,6 @@ ###### Visual Studio Compiler ################################################# -cl>-nologo \ No newline at end of file +cl>-nologo +cl>-Zi +cl>-FC +cl>-MP + diff --git a/samples/parse_check.c b/samples/parse_check.c index da00371..6870929 100644 --- a/samples/parse_check.c +++ b/samples/parse_check.c @@ -19,7 +19,7 @@ int main(int argument_count, char **arguments) for(MD_EachNode(node, root->first_child)) { MD_String8List strs = MD_DebugStringListFromNode(arena, node, 0, MD_S8Lit(" "), MD_GenerateFlags_Tree); - MD_String8 str = MD_S8ListJoin(arena, &strs, 0); + MD_String8 str = MD_S8ListJoin(arena, strs, 0); fprintf(stdout, "%.*s\n", MD_S8VArg(str)); } }