diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-08 00:16:39 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-08 00:16:39 +0100 |
| commit | cda0977c2bf2176aa0cf9e0f7030b06ecf568759 (patch) | |
| tree | 49034c500536295604a994c1d01b5fd4244af041 /src | |
| parent | 8e8293d21f83d20269309affbe79fa17c162ffb5 (diff) | |
Fix typo with darwin specific files.
Diffstat (limited to 'src')
| -rw-r--r-- | src/index/build.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index/build.odin b/src/index/build.odin index 8acb052..7226e24 100644 --- a/src/index/build.odin +++ b/src/index/build.odin @@ -32,7 +32,7 @@ platform_os: map[string]bool = { os_enum_to_string: map[runtime.Odin_OS_Type]string = { .Windows = "windows", - .Darwin = "dawrin", + .Darwin = "darwin", .Linux = "linux", .Essence = "essence", .FreeBSD = "freebsd", @@ -52,7 +52,7 @@ walk_static_index_build :: proc(info: os.File_Info, in_err: os.Errno) -> (err: o } last_underscore_index := strings.last_index(info.name, "_") - last_dot_index := strings.last_index(info.name, ".") + last_dot_index := strings.last_index(info.name, ".") if last_underscore_index + 1 < last_dot_index { name_between := info.name[last_underscore_index + 1:last_dot_index] @@ -121,9 +121,9 @@ build_static_index :: proc(allocator := context.allocator, config: ^common.Confi dir := filepath.base(filepath.dir(fullpath, context.allocator)) pkg := new(ast.Package) - pkg.kind = .Normal + pkg.kind = .Normal pkg.fullpath = fullpath - pkg.name = dir + pkg.name = dir if dir == "runtime" { pkg.kind = .Runtime |