* INSTALL: Mention ARM compilation with clang.
+2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * configure.ac: Use -no-integrated-as on arm with clang.
+ * INSTALL: Mention ARM compilation with clang.
+
2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
* conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
Note: older versions may work but support is limited
Note: clang 3.2 or later works for i386 and x86_64 targets but results in
much bigger binaries.
+ Note: clang 3.2 or later works for arm
Note: clang 3.4 or later works for powerpc
* GNU Make
* GNU Bison 2.3 or later
]])],
[grub_cv_cc_target_clang=no], [grub_cv_cc_target_clang=yes])])
-# clang doesn't support .code16
-if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ); then
+# on x86 clang doesn't support .code16
+# on arm clang doesn't support .arch directive
+if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm ); then
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
fi