diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-28 11:44:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-28 11:44:39 +0100 |
| commit | 17efb87eef5c24bdc95da8b2406e4bde13941251 (patch) | |
| tree | c1ec168e7d03efcf738d83e82c58392a9f582116 /src/build_settings.cpp | |
| parent | 1747fdc3f0a88ddf851c5b2a58c4f2e04e532b84 (diff) | |
Add `-custom-attribute`
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 1988e9cac..4b348256b 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -862,6 +862,8 @@ struct BuildContext { bool keep_object_files; bool disallow_do; + StringSet custom_attributes; + bool strict_style; bool ignore_warnings; @@ -1882,6 +1884,8 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta bc->thread_count = gb_max(bc->affinity.thread_count, 1); } + string_set_init(&bc->custom_attributes); + bc->ODIN_VENDOR = str_lit("odin"); bc->ODIN_VERSION = ODIN_VERSION; bc->ODIN_ROOT = odin_root_dir(); |