Skip to content

Commit

Permalink
appimage: Strip header files out of appimage
Browse files Browse the repository at this point in the history
Some header files libclang ships are quite huge (megabytes). Looks like
they're for ARM. Regardless, we don't need any header files at runtime.

This saves us about 1M of disk space.
  • Loading branch information
danobi committed Jul 22, 2024
1 parent b4a70de commit f1c63d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 159,7 @@
# Exclude the following groups to reduce appimage size:
#
# *.a: Static archives are not necessary at runtime
# *.h: Header files are not necessary at runtime (some ARM headers for clang are large)
# *.pyc, *.py, *.whl: bpftrace does not use python at runtime
# libLLVM-11.so: Appimage uses the latest llvm we support, so not llvm11
#
Expand All @@ -172,6 173,7 @@
# ```
exclude = [
"... *.a"
"... *.h"
"... *.pyc"
"... *.py"
"... *.whl"
Expand Down

0 comments on commit f1c63d0

Please sign in to comment.