llvm.org GIT mirror llvm / fb23462
Add NativeClient operating system support. This patch adds support of NativeClient (*-*-nacl) OS support to LLVM. It's already supported in autoconf/config.sub. The motivation for this change is to start upstreaming PNaCl work. The whole set of patches include llvm backends (i686, x86_64, ARM), llvm-gcc (probably, would not be upstreamed because it's deprecated) and clang (the work has been just started, the amount of changes is going to be low and the most of the work is expected to be done close to the mainline). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138005 91177308-0d34-0410-b5e6-96231b3b80d8 Ivan Krasin 8 years ago
4 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
298298 llvm_cv_target_os_type="Haiku" ;;
299299 *-*-rtems*)
300300 llvm_cv_target_os_type="RTEMS" ;;
301 *-*-nacl*)
302 llvm_cv_target_os_type="NativeClient" ;;
301303 *-unknown-eabi*)
302304 llvm_cv_target_os_type="Freestanding" ;;
303305 *)
23402340 llvm_cv_target_os_type="Haiku" ;;
23412341 *-*-rtems*)
23422342 llvm_cv_target_os_type="RTEMS" ;;
2343 *-*-nacl*)
2344 llvm_cv_target_os_type="NativeClient" ;;
23432345 *-unknown-eabi*)
23442346 llvm_cv_target_os_type="Freestanding" ;;
23452347 *)
9393 Win32,
9494 Haiku,
9595 Minix,
96 RTEMS
96 RTEMS,
97 NativeClient
9798 };
9899 enum EnvironmentType {
99100 UnknownEnvironment,
109109 case Haiku: return "haiku";
110110 case Minix: return "minix";
111111 case RTEMS: return "rtems";
112 case NativeClient: return "nacl";
112113 }
113114
114115 return "";