aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-03-30 16:15:54 +0100
committergingerBill <bill@gingerbill.org>2022-03-30 16:15:54 +0100
commit5f3bfa66c56deb988d33c823c2a874ee1c9e8d61 (patch)
tree4d296788626e636a3abc3e9722e1ab73c0328338 /src
parent561b725b0ec4b2be9180c1b8e2ee9fdf0d6fab34 (diff)
parentabf0fd7efccdb3e85381261c4c69b058d8289f2d (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 905571f44..9e470923d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -436,6 +436,10 @@ i32 linker_stage(lbGenerator *gen) {
String output_ext = {};
gbString link_settings = gb_string_make_reserve(heap_allocator(), 32);
+ if (build_context.no_crt) {
+ link_settings = gb_string_append_fmt(link_settings, "-nostdlib ");
+ }
+
// NOTE(dweiler): We use clang as a frontend for the linker as there are
// other runtime and compiler support libraries that need to be linked in
// very specific orders such as libgcc_s, ld-linux-so, unwind, etc.