Add configure option --host-only

When specified, the build will be configured for building build host
tools only.
This commit is contained in:
Ingo Weinhold
2013-07-03 23:19:00 +02:00
parent 87e22aa865
commit 2ebcd86dfe
3 changed files with 64 additions and 36 deletions
+5 -1
View File
@@ -119,7 +119,11 @@ HAIKU_CONFIG_HEADERS = [ FDirName $(HAIKU_TOP) build user_config_headers ]
# haiku target platform settings
# analyze GCC version
HAIKU_GCC_VERSION = [ FAnalyzeGCCVersion HAIKU_GCC_RAW_VERSION ] ;
if $(HAIKU_HOST_BUILD_ONLY) = 1 {
HAIKU_GCC_VERSION = 0 0 0 ;
} else {
HAIKU_GCC_VERSION = [ FAnalyzeGCCVersion HAIKU_GCC_RAW_VERSION ] ;
}
# enable GCC -pipe option, if requested
if $(HAIKU_USE_GCC_PIPE) = 1 {
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
echo "Error: The build has been configured for building the build host tools" \
"only." >&2
exit 1