Skip to content

Commit

Permalink
packit: build Packit with LTO in OpenScanHub
Browse files Browse the repository at this point in the history
GCC analyzer in some cases depends on information provided by LTO to
generate accurate results, but the LTO support in GCC analyzer is still
experimental, so it's not enabled by default. In Polkit, however, this
seems to work pretty well, so let's tell OSH to build our code with LTO
when running GCC analyzer.
  • Loading branch information
mrc0mmand authored and vmihalko committed Nov 28, 2024
1 parent ff243db commit 252b7f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ files_to_sync:
upstream_package_name: polkit
# downstream (Fedora) RPM package name
downstream_package_name: polkit
# arguments for OpenScanHub
#
# Note: GCC analyzer in some cases depends on information provided by LTO to
# generate accurate results, but the LTO support in GCC analyzer is still
# experimental, so it's not enabled by default. In Polkit, however, this
# seems to work pretty well, so let's tell OSH to build our code with LTO
# when running GCC analyzer.
csmock_args: --gcc-add-flag=-flto=auto

jobs:
- job: copr_build
Expand Down

0 comments on commit 252b7f3

Please sign in to comment.