thrift: support reproducible builds

In order to support reproducible builds [1], while using bison
to generate source code, add COMPILE_FLAGS --file-prefix-map [2]
to remove build path prefix and source path prefix in the generated
header file.

[1] https://reproducible-builds.org/
[2] https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=dd878d18519689c7bbcd72de4c9f9e53085a3cbf

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia
2025-11-20 13:14:04 +08:00
committed by Khem Raj
parent 204b8f1a34
commit 0e583d2830
3 changed files with 50 additions and 1 deletions
-1
View File
@@ -200,7 +200,6 @@ OEQA_REPRODUCIBLE_EXCLUDED_PACKAGES += " \
libsource-highlight-dbg \
libsource-highlight-dev \
libsource-highlight-src \
libthrift-c-glib-zlib-src \
libvncserver-dev \
libwebsockets-testapps \
libwmf \