IR now builds with the new package system

This commit is contained in:
gingerBill
2018-05-27 10:49:14 +01:00
parent eb11edabe0
commit 7ee9051a56
9 changed files with 800 additions and 13 deletions

View File

@@ -259,7 +259,10 @@ bool string_contains_char(String const &s, u8 c) {
String filename_from_path(String s) {
isize i = string_extension_position(s);
s = substring(s, 0, i);
if (i >= 0) {
s = substring(s, 0, i);
return s;
}
if (i > 0) {
isize j = 0;
for (j = s.len-1; j >= 0; j--) {