!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

439 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.145 Servers

Load older messages


SenderMessageTime
30 May 2024
@qyriad:katesiria.orgQyriadPlus some other stuff in the derivation that wasn't right for static builds01:09:57
@delroth:delroth.netdelrothoh, I couldn't get this to work because then stuff linking with libexpr would break due to libexpr link_whole-ing libstore but meson not passing the transitive dependencies of libstore to the builds01:10:59
@delroth:delroth.netdelrothmust have missed something when I tried01:11:05
@delroth:delroth.netdelrothcool that this does end up working01:11:12
@qyriad:katesiria.orgQyriad the trick is to only link_whole : on executables 01:18:01
@qyriad:katesiria.orgQyriad
liblixexpr = declare_dependency(
  include_directories : include_directories('.'),
  link_with : libexpr,
)

if is_static
  liblixexpr_mstatic = declare_dependency(
    include_directories : include_directories('.'),
    link_whole : libexpr,
  )
else
  liblixexpr_mstatic = liblixexpr
endif
and then
nix = executable(
  'nix',
  ….
  dependencies : [
    liblixcmd,
    liblixutil,
    liblixstore_mstatic,
    liblixexpr_mstatic,
    liblixfetchers_mstatic,
    liblixmain,
    boehm,
    nlohmann_json,
  ],

)
01:19:55
@qyriad:katesiria.orgQyriad
liblixexpr = declare_dependency(
  include_directories : include_directories('.'),
  link_with : libexpr,
)

if is_static
  liblixexpr_mstatic = declare_dependency(
    include_directories : include_directories('.'),
    link_whole : libexpr,
  )
else
  liblixexpr_mstatic = liblixexpr
endif
and then
nix = executable(
  'nix',
  …
  dependencies : [
    liblixcmd,
    liblixutil,
    liblixstore_mstatic,
    liblixexpr_mstatic,
    liblixfetchers_mstatic,
    liblixmain,
    boehm,
    nlohmann_json,
  ],
)
01:20:11
@delroth:delroth.netdelrothugh, hacky01:22:12
@delroth:delroth.netdelrothhopefully #359 can deprecate this in the future, can you leave a comment on the issue once you've merged this?01:22:42
@delroth:delroth.netdelrothso we remember to have a look at removing it when static initializers are gone01:22:57
@qyriad:katesiria.orgQyriadyep, we were also going to leave comments in these parts of the meson files saying to remove them when the static initializers are gone01:23:25
@jade_:matrix.orgjade_https://gerrit.lix.systems/c/lix/+/1351 10% knocked off of build times :D04:17:46
@qyriad:katesiria.orgQyriadI love you04:24:05
@jade_:matrix.orgjade_btw04:24:06
@jade_:matrix.orgjade_image.png
Download image.png
04:24:09
@jade_:matrix.orgjade_in case you are wondering why error.hh is expensive04:24:12
@jade_:matrix.orgjade_it's fucking boost fmt04:24:16
@jade_:matrix.orgjade_419ms of it is boost/format.hpp04:24:29
@jade_:matrix.orgjade_don't you love when you can just attach a profiler to the bad thing and get 10% improvement in 30 minutes :D thanks so much to tom for splitting util.hh so we could do this04:25:27
@weirdrock:4d2.orgquartz
In reply to @jade_:matrix.org
https://gerrit.lix.systems/c/lix/+/1351 10% knocked off of build times :D
that's A Lot
04:26:28
@jade_:matrix.orgjade_it's cpu-seconds, mind04:26:42
@jade_:matrix.orgjade_my last build time hacking got 15% off the build times: https://gerrit.lix.systems/c/lix/+/588 sadly, these things need doing every so often, since we are, even after my latest optimization, apparently 100 cpu seconds worse than we were then :P04:28:12
@jade_:matrix.orgjade_ someone could probably iwyu some more time off of it 04:28:32
@jade_:matrix.orgjade_ anyway. i am so so so so glad for the clang self-profiler -ftime-trace. it's the best. 04:29:33
@jade_:matrix.orgjade_https://wiki.lix.systems/books/lix-contributors/page/improving-build-times wow that page was outdated, i have updated it so it is good now04:50:08
@weirdrock:4d2.orgquartz
In reply to @jade_:matrix.org
it's cpu-seconds, mind
still a good bit!
04:51:15
@jade_:matrix.orgjade_for sure!04:51:31
@jade_:matrix.orgjade_and it really literally is just shuffling code around04:51:40
@me:linj.techlinj joined the room.06:47:19
@aprl:uwu.isaprl (GPN; DECT 2774; SIP GAYS) changed their display name from aprl to aprl (GPN; DECT 2774; SIP GAYS).09:21:22

Show newer messages


Back to Room ListRoom Version: 10