]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed zstd-pgo target for GCC
authorIlya Kurdyukov <59548320+ilyakurdyukov@users.noreply.github.com>
Wed, 5 Oct 2022 10:32:16 +0000 (17:32 +0700)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2022 10:32:16 +0000 (17:32 +0700)
commit2ffcb2d6a882626d831b88d26e4c653c53efc38e
tree324d3419825e1dba21d212124ad2197e957d3f4f
parent33273e1b9cc478f6d10fa029d1da0cd65330ae0a
fixed zstd-pgo target for GCC

Since your Makefile uses obj/$(HASH_DIR) for object files, this code does not work correctly for GCC. Because profiles are saved in one directory, and are expected in another when reading.

`$(RM) zstd *.o` - this line doesn't delete object files.

Clang stores profiles in the current directory, so the problem doesn't appear when compiling with Clang.

Also this code will work if BUILD_DIR is set.
programs/Makefile