Should we define _GNU_SOURCE in SwiftGlibc?

This topic has come up a couple of times in the past:

The latter post has some especially interesting details. Apparently they investigated this and found the source breakage to be minimal:

These days, we generate SwiftGlibC by pre-compiling a header file (well, a gybed header file), so it's a lot easier to add these sorts of feature macros without touching the compiler/clang importer.

Adding this would expose a lot of really useful platform functionality. If we can figure out the source breakage (if it even still applies), I think this would be a worthwhile change. Thoughts?

Terms of Service

Privacy Policy

Cookie Policy