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,13 +18,13 @@
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.h"
|
||||
|
||||
/ Returns prefix length, consisting of chars not in reject.
|
||||
/
|
||||
/ @param rdi is string
|
||||
/ @param rsi is reject nul-terminated character set
|
||||
/ @return rax is index of first byte in charset
|
||||
/ @see strspn(), strtok_r()
|
||||
/ @asyncsignalsafe
|
||||
// Returns prefix length, consisting of chars not in reject.
|
||||
//
|
||||
// @param rdi is string
|
||||
// @param rsi is reject nul-terminated character set
|
||||
// @return rax is index of first byte in charset
|
||||
// @see strspn(), strtok_r()
|
||||
// @asyncsignalsafe
|
||||
strcspn:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
|
||||
Reference in New Issue
Block a user