[runtime] Avoid building the tools dir when cross-compiling, some tools don't seem...
authorZoltan Varga <vargaz@gmail.com>
Sat, 11 Jun 2016 02:48:21 +0000 (22:48 -0400)
committerZoltan Varga <vargaz@gmail.com>
Sat, 11 Jun 2016 02:48:27 +0000 (22:48 -0400)
Makefile.am

index 5e0c053956af6345845d94b8226db224b767014d..0df27c54ea9ac0be3b5023c420a82d99923603fc 100644 (file)
@@ -4,7 +4,14 @@ AM_CFLAGS = $(WERROR_CFLAGS)
 
 MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
 
-SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples tools msvc $(docs_dir) acceptance-tests llvm
+# Some tools might not build when cross-compiling
+if CROSS_COMPILING
+tools_dir =
+else
+tools_dir = tools
+endif
+
+SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
 # Keep in sync with SUBDIRS
 DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm