mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add some initial ability to compile for a limited set of backends because of narrow-minded LLVM maintainers. 640 kb is good enough for anybody.
This commit is contained in:
@@ -1834,13 +1834,25 @@ void *llvm_target_machine_create(void)
|
||||
{
|
||||
llvm_initialized = true;
|
||||
#if XTENSA_AVAILABLE
|
||||
#ifndef XTENSA_DISABLE
|
||||
INITIALIZE_TARGET(Xtensa);
|
||||
#endif
|
||||
#endif
|
||||
#ifndef ARM_DISABLE
|
||||
INITIALIZE_TARGET(ARM);
|
||||
#endif
|
||||
#ifndef AARCH64_DISABLE
|
||||
INITIALIZE_TARGET(AArch64);
|
||||
#endif
|
||||
#ifndef RISCV_DISABLE
|
||||
INITIALIZE_TARGET(RISCV);
|
||||
#endif
|
||||
#ifndef WASM_DISABLE
|
||||
INITIALIZE_TARGET(WebAssembly);
|
||||
#endif
|
||||
#ifndef X86_DISABLE
|
||||
INITIALIZE_TARGET(X86);
|
||||
#endif
|
||||
// To support more targets, add them above.
|
||||
}
|
||||
char *err = NULL;
|
||||
|
||||
Reference in New Issue
Block a user