When calling this many times it takes a lot of time. Thus it would be nice to make a perl variable that would be set once and then reused once the next makefile gets loaded.
Is this an option?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Of course with perl you can do everything you'd ever dream of. But this one is easier:
Put this into your RootMakeppfile (or one of its include files) declaring those 2 variables as global. Then they are only set once, but can be read in every makefile.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-05-06
Is there a way to profile makepp? My trouble here is that I'm doing random guessing to find out where the time is spent. This trick works fine but is just one out of many that should be done. The other tricks I don't know about yet since it's hard to find out where the time is spent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to use perl inside of makepp to register some common settings?
As an example. We are loading around 50 makefiles and inside of our top makefile there is a statement identifying the compiler version:
# Detect the version of Visual Studio
COMPILER := $(shell cl 2>&1)
ifneq $(findstring 16.00, $(COMPILER))
TARGET_COMPILER := VC2010
else ifneq $(findstring 15.00, $(COMPILER))
TARGET_COMPILER := VC2008
else ifneq $(findstring 14.00, $(COMPILER))
TARGET_COMPILER := VC2005
else ifneq $(findstring 13.10, $(COMPILER))
TARGET_COMPILER := VCNET2003
else ifneq $(findstring 12.00, $(COMPILER))
TARGET_COMPILER := VC60
endif
When calling this many times it takes a lot of time. Thus it would be nice to make a perl variable that would be set once and then reused once the next makefile gets loaded.
Is this an option?
Of course with perl you can do everything you'd ever dream of. But this one is easier:
Put this into your RootMakeppfile (or one of its include files) declaring those 2 variables as global. Then they are only set once, but can be read in every makefile.
Is there a way to profile makepp? My trouble here is that I'm doing random guessing to find out where the time is spent. This trick works fine but is just one out of many that should be done. The other tricks I don't know about yet since it's hard to find out where the time is spent.
Hi Henrik,
did you try mpp -help?
Usage: makepp targets
Valid options include:
…
-profile