Differential Revision: https://reviews.llvm.org/D58839
llvm-svn: 355467
]
target_ldflags += [ "-static-libstdc++" ]
}
+
+if (current_cpu == "x86") {
+ target_flags = [ "-m32" ]
+}
assert(false, "unimplemented current_os " + current_os)
}
-if (current_cpu == "x64") {
+if (current_cpu == "x86") {
+ crt_current_target_arch = "i386"
+} else if (current_cpu == "x64") {
crt_current_target_arch = "x86_64"
} else if (current_cpu == "arm64") {
crt_current_target_arch = "aarch64"
-if (current_cpu == "x64") {
+if (current_cpu == "x86") {
+ if (current_os == "linux") {
+ llvm_current_triple = "i386-unknown-linux-gnu"
+ }
+} else if (current_cpu == "x64") {
if (current_os == "freebsd") {
llvm_current_triple = "x86_64-unknown-freebsd"
} else if (current_os == "linux") {