mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
pgo: explicitly set LLVM_PROFILE_FILE envvar
When building foot with pgo under gentoo's portage, LLVM tried to generate profile data files directly under system root, triggering sandbox violation and causing build to fail. Setting this envvar fixes the issue by explicitly specifying profiling data location. Reference: https://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation
This commit is contained in:
parent
41acc69e82
commit
8282af2868
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ if [ ${do_pgo} = yes ]; then
|
||||||
ninja -C "${blddir}" test
|
ninja -C "${blddir}" test
|
||||||
|
|
||||||
# Run mode-dependent script to generate profiling data
|
# Run mode-dependent script to generate profiling data
|
||||||
|
export LLVM_PROFILE_FILE="${blddir}/default_%m.profraw"
|
||||||
"${srcdir}"/pgo/${mode}.sh "${srcdir}" "${blddir}"
|
"${srcdir}"/pgo/${mode}.sh "${srcdir}" "${blddir}"
|
||||||
|
|
||||||
if [ ${compiler} = clang ]; then
|
if [ ${compiler} = clang ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue