Skip to content

Commit a00b4bc

Browse files
committed
i18n: fix generator script out of date with generated source
1 parent 595586a commit a00b4bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/compile-translations.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,14 @@ using namespace std::literals::string_view_literals;
489489
return hash_entry.mapping_table_index;
490490
}
491491
}
492-
#if __cpp_constexpr >= 201907L
492+
493+
// Helpfully fail compilation if this file is out of date.
494+
#if __cpp_constexpr >= 201907L && !defined(_MSC_VER)
493495
// If you see an error with the following line, translation-table-generated.h
494496
// is out of date. Run tools/update-translator-sources to rebuild this file.
495497
asm("");
496498
#endif
499+
497500
return 0;
498501
}
499502
}

0 commit comments

Comments
 (0)