Allow .asm, .s, and .S as valid assembly file extensions

This commit is contained in:
gingerBill
2021-11-26 22:25:07 +00:00
parent 33dc12a61a
commit 27106dd9ae
3 changed files with 15 additions and 4 deletions
+12
View File
@@ -822,6 +822,18 @@ bool show_error_line(void) {
return build_context.show_error_line;
}
bool has_asm_extension(String const &path) {
String ext = path_extension(path);
if (ext == ".asm") {
return true;
} else if (ext == ".s") {
return true;
} else if (ext == ".S") {
return true;
}
return false;
}
void init_build_context(TargetMetrics *cross_target) {
BuildContext *bc = &build_context;