diff options
author | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-06 15:06:02 +0000 |
---|---|---|
committer | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-06 15:06:02 +0000 |
commit | 03f3425f5238cfb6ebbc7d96511465e80e17e293 (patch) | |
tree | c33e2cb7e8dc90307395c84dfba0be3ea4b41ea1 /ACE/include/makeinclude/wrapper_macros.GNU | |
parent | 239f2751c612836d6a4b1900a955f92ecc61e6dd (diff) | |
download | ATCD-03f3425f5238cfb6ebbc7d96511465e80e17e293.tar.gz |
Sat Feb 6 15:03:30 UTC 2010 Martin Corino <mcorino@remedy.nl>
* include/makeinclude/wrapper_macros.GNU:
Added support for Icecream distributed compile system.
Diffstat (limited to 'ACE/include/makeinclude/wrapper_macros.GNU')
-rw-r--r-- | ACE/include/makeinclude/wrapper_macros.GNU | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/wrapper_macros.GNU b/ACE/include/makeinclude/wrapper_macros.GNU index c6d62b4f860..7fbc055b9e9 100644 --- a/ACE/include/makeinclude/wrapper_macros.GNU +++ b/ACE/include/makeinclude/wrapper_macros.GNU @@ -888,6 +888,33 @@ ace_uuid ?= 1 ace_filecache ?= 1 acexml ?= 1 +# Icecream distributed compilation support +ifeq ($(icecream),1) + # check availability of icecc + ifneq ($(ICECC_ROOT),) + ICECC_PROG := $(ICECC_ROOT)/icecc + else + ICECC_PROG := $(shell which icecc 2>/dev/null) + endif + ICECC_VERTEST := $(shell test -x "$(ICECC_PROG)" && $(ICECC_PROG) --version) + ifneq (ICECC,$(findstring ICECC,$(ICECC_VERTEST))) + # not good, try alternative install location + ICECC_PROG := /opt/icecream/bin/icecc + ICECC_VERTEST := $(shell test -x "$(ICECC_PROG)" && $(ICECC_PROG) --version) + ifneq (ICECC,$(findstring ICECC,$(ICECC_VERTEST))) + override icecream := 0 + $(error Cannot locate valid Icecream compiler.) + endif + endif + ifeq ($(icecream),1) + # force LD and DLD to be 'normal' tools + override LD := $(LD) + override DLD := $(DLD) + CC := $(ICECC_PROG) + CXX := $(ICECC_PROG) + endif +endif + #---------------------------------------------------------------------------- # Conditional macro definitions #---------------------------------------------------------------------------- |