Get codebase completely working with LLVM
You can now build Cosmopolitan with Clang:
make -j8 MODE=llvm
o/llvm/examples/hello.com
The assembler and linker code is now friendly to LLVM too.
So it's not needed to configure Clang to use binutils under
the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
18
test/libc/release/emulate.sh
Executable file
18
test/libc/release/emulate.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# smoke test userspace binary emulation
|
||||
CMD="o/$MODE/tool/build/blinkenlights.com.dbg o/$MODE/examples/hello.com"
|
||||
printf '%s\n' "$CMD" >&2
|
||||
if OUTPUT="$($CMD)"; then
|
||||
if [ x"$OUTPUT" = x"hello world" ]; then
|
||||
touch o/$MODE/test/libc/release/emulate.ok
|
||||
exit 0
|
||||
else
|
||||
printf '%s\n' "error: $CMD printed wrong output: $OUTPUT" >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
RC=$?
|
||||
printf '%s\n' "error: $CMD failed: $RC" >&2
|
||||
exit $RC
|
||||
fi
|
||||
Reference in New Issue
Block a user