]> git.ipfire.org Git - thirdparty/zstd.git/commit
Improve Module Map File
authorW. Felix Handte <w@felixhandte.com>
Thu, 23 Dec 2021 19:57:16 +0000 (14:57 -0500)
committerW. Felix Handte <w@felixhandte.com>
Wed, 5 Jan 2022 23:32:53 +0000 (18:32 -0500)
commit8dd943e42c13ca33d07ead274e07defd1e2114c5
treec82cba00302aa3190c32c6da4a2163bcc915c6fa
parent7e679511a87dad03fcc2722728b412f5c024bba0
Improve Module Map File

This commit makes several changes:

1. It adds modules for the dictionary builder and errors headers.
2. It captures all of the macros that are used to configure these headers.
   When the headers are imported as modules and one of these macros is defined
   the compiler issues a warning that it needs to be defined on the CLI.
3. It promotes the modulemap file into the root of the lib directory.
   Experimentation shows that clang's `-fimplicit-module-maps` will find the
   modulemap when placed here, but not when it's put in a subdirectory.
lib/module.modulemap [new file with mode: 0644]
lib/modulemap/module.modulemap [deleted file]