aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
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 {