Fix profile build for syzygy
authorJoona Kiiski <joona.kiiski@gmail.com>
Sun, 7 Dec 2014 19:54:23 +0000 (19:54 +0000)
committerJoona Kiiski <joona.kiiski@gmail.com>
Wed, 10 Dec 2014 17:59:41 +0000 (17:59 +0000)
Touch source files under syzygy directory to force recompilation
after collecting profile data.

No functional change

Resolves #149

src/Makefile

index 301cbdd..80867fe 100644 (file)
@@ -366,14 +366,14 @@ profile-build:
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_prepare)
        @echo ""
        @echo "Step 1/4. Building executable for benchmark ..."
-       @touch *.cpp *.h
+       @touch *.cpp *.h syzygy/*.cpp syzygy/*.h
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_make)
        @echo ""
        @echo "Step 2/4. Running benchmark for pgo-build ..."
        @$(PGOBENCH) > /dev/null
        @echo ""
        @echo "Step 3/4. Building final executable ..."
-       @touch *.cpp
+       @touch *.cpp *.h syzygy/*.cpp syzygy/*.h
        $(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_use)
        @echo ""
        @echo "Step 4/4. Deleting profile data ..."