aboutsummaryrefslogtreecommitdiff
path: root/src/server/build.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-05-29 21:40:01 +0200
committerDanielGavin <danielgavin5@hotmail.com>2024-05-29 21:40:01 +0200
commit2219138b240d0b8d8e71601b7852f666df316fea (patch)
treea551ecb0c420e60a4544e3bc483512345fa933be /src/server/build.odin
parent9cf3c6313e77b0c3d80b8ffc298b20ab2d5b633d (diff)
More work on renaming
Diffstat (limited to 'src/server/build.odin')
-rw-r--r--src/server/build.odin9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/server/build.odin b/src/server/build.odin
index aca1796..69e63b2 100644
--- a/src/server/build.odin
+++ b/src/server/build.odin
@@ -160,14 +160,7 @@ setup_index :: proc() {
)
indexer.index = make_memory_index(symbol_collection)
- dir_exe, ok := filepath.abs(path.dir(os.args[0], context.temp_allocator))
-
- if !ok {
- log.error(
- "Failed to find ols executable path to build the builtin packages",
- )
- return
- }
+ dir_exe := common.get_executable_path()
try_build_package(path.join({dir_exe, "builtin"}))
}