mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Use "rm -f" instead of "rm" for gcc profiling hack in Makefile
In some UNIX systems "rm" prompts user for confirmation. However "rm -f" is always a guaranteed forced deletion. Also move gcc profiling hack under the correct target No Functional change Resolves #168
This commit is contained in:
parent
3231038262
commit
e5c7b44f7a
1 changed files with 3 additions and 3 deletions
|
@ -373,9 +373,6 @@ profile-build:
|
||||||
@$(PGOBENCH) > /dev/null
|
@$(PGOBENCH) > /dev/null
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Step 3/4. Building final executable ..."
|
@echo "Step 3/4. Building final executable ..."
|
||||||
# Deleting corrupt ucioption.gc* profile files is necessary to avoid an
|
|
||||||
# "internal compiler error" for gcc versions 4.7.x
|
|
||||||
@rm ucioption.gc*
|
|
||||||
@touch *.cpp *.h syzygy/*.cpp syzygy/*.h
|
@touch *.cpp *.h syzygy/*.cpp syzygy/*.h
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_use)
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_use)
|
||||||
@echo ""
|
@echo ""
|
||||||
|
@ -447,6 +444,9 @@ gcc-profile-make:
|
||||||
all
|
all
|
||||||
|
|
||||||
gcc-profile-use:
|
gcc-profile-use:
|
||||||
|
# Deleting corrupt ucioption.gc* profile files is necessary to avoid an
|
||||||
|
# "internal compiler error" for gcc versions 4.7.x
|
||||||
|
@rm -f ucioption.gc*
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) \
|
||||||
EXTRACXXFLAGS='-fbranch-probabilities' \
|
EXTRACXXFLAGS='-fbranch-probabilities' \
|
||||||
EXTRALDFLAGS='-lgcov' \
|
EXTRALDFLAGS='-lgcov' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue