diff options
| author | heather7283 <heather7283@protonmail.com> | 2024-11-19 16:06:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-12-08 08:10:43 +0000 |
| commit | 7e88e0bfdc3b0659bb763fde2cc11726f5b1132d (patch) | |
| tree | 745d97430700dfef3d8f01cdfc5adcc1ba02253b | |
| parent | pgo: run sway with --unsupported-gpu flag (diff) | |
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
| -rwxr-xr-x | pgo/pgo.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -103,6 +103,7 @@ if [ ${do_pgo} = yes ]; then ninja -C "${blddir}" test # Run mode-dependent script to generate profiling data + export LLVM_PROFILE_FILE="${blddir}/default_%m.profraw" "${srcdir}"/pgo/${mode}.sh "${srcdir}" "${blddir}" if [ ${compiler} = clang ]; then |
