diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-17 20:21:02 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-17 20:21:02 -0400 |
| commit | b49d5200aa92aaa1dca47b727d6cc6274da47199 (patch) | |
| tree | f897b33c3f443b065fb5685be2148484ea078e1d /tomo.c | |
| parent | 7f525588cb1e5f1b56e79e4c0407b909b4b5ff52 (diff) | |
Don't recompile headers all the time
Diffstat (limited to 'tomo.c')
| -rw-r--r-- | tomo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -411,7 +411,8 @@ void compile_files(env_t *env, Array_t to_compile, bool only_compile_arguments, // for downstream dependencies: for (int64_t i = 0; i < dependency_files.entries.length; i++) { Path_t filename = *(Path_t*)(dependency_files.entries.data + i*dependency_files.entries.stride); - transpile_header(env, filename, true); + bool is_argument_file = (Table$get(argument_files, &filename, path_table_info) != NULL); + transpile_header(env, filename, is_argument_file); } env->imports = new(Table_t); |
