!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

180 Members
56 Servers

Load older messages


SenderMessageTime
28 Jun 2025
@qyliss:fairydust.spaceAlyssa RossI'd much rather we have injected compiler flags that don't go behind the back of the build system12:07:18
@qyliss:fairydust.spaceAlyssa RossPassing them to configure would already be an improvement.12:07:25
@emilazy:matrix.orgemily fair enough, but Clang target configuration files are all about passing flags behind the back of the build system 12:08:01
@qyliss:fairydust.spaceAlyssa Rosseh, feels different when it's a supported compiler feature12:08:17
@emilazy:matrix.orgemilyand I don't know where we draw the line. every compiler has built-in flags of some kind12:08:19
@emilazy:matrix.orgemilye.g. GCC specs12:08:22
@qyriad:katesiria.orgQyriad can't you --with-lib=/path/to/libfoo in most cases? I know well it's not universal but if you're breaking -lfoo anyway… 12:08:22
@qyliss:fairydust.spaceAlyssa Ross You don't even need to. You can pass CFLAGS to configure or make. 12:08:49
@qyriad:katesiria.orgQyriad good point 12:08:58
@qyliss:fairydust.spaceAlyssa Ross(Although I guess it would be nicer not to)12:09:01
@emilazy:matrix.orgemilyI doubt that's well-supported for e.g. libiconv (and it also doesn't work great with multiple outputs unless the autoconf build is especially nice)12:09:05
@qyriad:katesiria.orgQyriad yep fair enoughbutel 12:09:45
@emilazy:matrix.orgemily
In reply to @qyliss:fairydust.space
eh, feels different when it's a supported compiler feature
sure. but hence a potential option is just having C/C++ stuff generate its own config file for overlaying
12:09:50
@emilazy:matrix.orgemilyI don't really have a strong opinion on the best way to handle it prior to experimentation but I feel like the best option for prototyping would just be to handle the existing flag variables and overlay them on top of the target configs in a setup hook12:10:53
@emilazy:matrix.orgemilyyou still bypass cc-wrapper's flag logix12:11:07
@emilazy:matrix.orgemily * 12:11:11
@emilazy:matrix.orgemily maybe we could write .pc files for literally everything including libc and then just have machinery to opt in to assembling fixed flag strings to shove into compilers and build systems based on a given set of packages?? 12:26:18
@reckenrode:matrix.orgRandy EckenrodeI would like to do it via target if possible since that appears to be what Apple prefers doing in their toolchains.12:48:04
@emilazy:matrix.orgemily isn't that what I said? maybe I misunderstand 12:48:56
@reckenrode:matrix.orgRandy EckenrodeCould we figure out a way to have a static sysroot and use it explicitly for static builds?12:48:57
@reckenrode:matrix.orgRandy Eckenrode e.g., -target arm64-apple-macosx14.0 12:49:14
@emilazy:matrix.orgemilyah12:49:27
@reckenrode:matrix.orgRandy EckenrodeThat’s what SwiftPM and Swift Build do.12:49:57
@emilazy:matrix.orgemilyi don't think that solves the fundamental issue I'm talking about12:50:03
@emilazy:matrix.orgemily but it's also not that big an issue 12:50:12
@reckenrode:matrix.orgRandy Eckenrode More that whatever we do for deployment target would do it that way rather than use -mmacosx-min-version. 12:50:29
@reckenrode:matrix.orgRandy EckenrodeSomewhat tangential I guess.12:50:37
@emilazy:matrix.orgemilyright12:50:40
@reckenrode:matrix.orgRandy EckenrodeIdeally, we would hook into the build system to communicate the deployment target. e.g., AFAIK, CMake isn’t using our environment variable. You have to set it explicitly.12:51:10
@emilazy:matrix.orgemilyit reads from the non mangled var like everything else12:51:47

Show newer messages


Back to Room ListRoom Version: 9