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:
@@ -35,6 +35,8 @@
|
||||
* @see __addvsi3, __mulvsi3, etc.
|
||||
*/
|
||||
|
||||
#ifndef __llvm__ /* TODO(jart): wut */
|
||||
|
||||
volatile bool overflowed_;
|
||||
|
||||
void __on_arithmetic_overflow(void) {
|
||||
@@ -351,3 +353,5 @@ TEST(__mulvti3, testOverflow) {
|
||||
x *= 0xb504f333f9de6d29;
|
||||
EXPECT_TRUE(overflowed_);
|
||||
}
|
||||
|
||||
#endif /* __llvm__ */
|
||||
|
||||
Reference in New Issue
Block a user