Skip to content

Commit be375d3

Browse files
committed
add warning if crt1.o not found
1 parent 91c8d3f commit be375d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/backends/linux86.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module callisto.backends.linux86;
22

3+
import std.file;
34
import std.conv;
45
import std.stdio;
56
import std.range;
@@ -190,6 +191,10 @@ class BackendLinux86 : CompilerBackend {
190191
}
191192

192193
linkCommand ~= " /usr/lib/crt1.o";
194+
195+
if (!crt1) {
196+
stderr.writeln("WARNING: Failed to find crt1.o, program may behave incorrectly");
197+
}
193198
}
194199

195200
ret ~= linkCommand;

0 commit comments

Comments
 (0)