diff options
| author | Harold Brenes <harold@hbrenes.com> | 2025-10-12 01:57:29 -0400 |
|---|---|---|
| committer | Harold Brenes <harold@hbrenes.com> | 2025-10-12 01:57:29 -0400 |
| commit | 0de3de72571214c2cecc21d76121510c92192ce3 (patch) | |
| tree | 54c5bfff5e2406bbd2cefad8bb99c09c747630fa /src | |
| parent | 937161f68d39296e00215067c9d51737ac110a3e (diff) | |
Use exact value to determine system linked libs with `-export-linked-libs-file`
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1f619499c..945f0c3cf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2314,9 +2314,9 @@ gb_internal void export_linked_libraries(LinkerData *gen) { gb_fprintf(&f, "\t"); ast_node(imp, ForeignImportDecl, e->LibraryName.decl); for (Ast* file_path : imp->filepaths) { - GB_ASSERT(file_path->kind == Ast_BasicLit); + GB_ASSERT(file_path->tav.mode == Addressing_Constant && file_path->tav.value.kind == ExactValue_String); + String file_path_str = file_path->tav.value.value_string; - String file_path_str = file_path->BasicLit.token.string; if (string_starts_with(file_path_str, str_lit("\"system:"))) { gb_fprintf(&f, "system"); } else { |