boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

tcc-is-native-stub.after (555B)


      1 /* only native compiler supports -run */
      2 #if !BOOTSTRAP && defined _WIN32 == defined TCC_TARGET_PE
      3 # if (defined __i386__ || defined _X86_) && defined TCC_TARGET_I386
      4 #  define TCC_IS_NATIVE
      5 # elif (defined __x86_64__ || defined _AMD64_) && defined TCC_TARGET_X86_64
      6 #  define TCC_IS_NATIVE
      7 # elif defined __arm__ && defined TCC_TARGET_ARM
      8 #  define TCC_IS_NATIVE
      9 # elif defined __aarch64__ && defined TCC_TARGET_ARM64
     10 #  define TCC_IS_NATIVE
     11 # elif defined __riscv && defined __LP64__ && defined TCC_TARGET_RISCV64
     12 #  define TCC_IS_NATIVE
     13 # endif
     14 #endif