Enable cross-compilation across architectures on android

Summary:
This patch fixes cross-architecture compilation,
by allowing flags like -target and --sysroot to be set for
architecture testing and compilation.

Reviewers: tberghammer, srhines, danalbert, beanz, compnerd

Subscribers: tberghammer, llvm-commits, danalbert

Differential Revision: https://reviews.llvm.org/D22415

llvm-svn: 276333
This commit is contained in:
Francis Ricci 2016-07-21 21:05:14 +00:00
parent 1558a2f3ee
commit 283d8df277
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ else ()
STATIC
ARCHS ${arch}
SOURCES ${${arch}_SOURCES}
CFLAGS ${maybe_stdc99}
CFLAGS ${maybe_stdc99} ${CMAKE_C_FLAGS}
PARENT_TARGET builtins)
endif ()
endforeach ()