added missing default target options

This commit is contained in:
Sven Vogel 2024-05-31 16:57:25 +02:00
parent 5fb10bca88
commit 68ca76cb45
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,11 @@ TargetConfig default_target_config() {
config.print_ast = false;
config.print_asm = false;
config.print_ir = false;
config.mode = Application;
config.archive_directory = "archive";
config.archive_directory = "bin";
config.optimization_level = 1;
config.root_module = NULL;
return config;
}

View File

@ -19,6 +19,7 @@ typedef struct TargetConfig_t {
bool print_asm;
bool print_ir;
// root module file which imports all submodules
// if this is NULL use the first commandline argument as root module
char* root_module;
// output directory for binaries
char* output_directory;