!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
29 May 2024
@ash:ashwalker.netAsh joined the room.12:51:57
@hive:the-apothecary.clubtauphi changed their profile picture.16:44:12
@hive:the-apothecary.clubtauphi changed their profile picture.16:46:52
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) changed their display name from raitobezarius to raitobezarius (DECT: 7248).17:09:28
@irenes:matrix.org@irenes:matrix.orgwow this link think23:07:31
@irenes:matrix.org@irenes:matrix.orgI'm read in on it now23:07:35
@irenes:matrix.org@irenes:matrix.org*thing23:07:38
30 May 2024
@delroth:delroth.netdelroth Qyriad: I'm curious, any details and/or wip CL showing how you're fixing the static builds? I'm sad I must have missed a less complex way to fix them when I tried a few weeks ago :p 01:08:12
@qyriad:katesiria.orgQyriad I'm just applying link_whole : where relevant conditional on get_option('default_library') == 'static' 01:09:44
@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

There are no newer messages yet.


Back to Room ListRoom Version: 10