Skip to main content

Generate command-line options for C compiler from used headers

Project description

Headers as Dependencies

HaD reads the #included headers from a bunch of C files and prints the corresponding compiler options. For instance, if #include <math.h> is used, option -lm is required, or if #include <pthread.h> is used, -pthread is required.

To do so, HaD relies on a database maintained by hand, as well as on pkg-config. It currently supports only GCC and Clang on Linux.

Contributions welcome!

You can help a lot by enriching files hadlib/*.cfg. This is actually the heart of the tool. All the rest is simple code to read and present this knowledge.

Licence

HaD is published as free software under the terms of the MIT licence

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Headers as Dependencies-0.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file Headers as Dependencies-0.3.tar.gz.

File metadata

  • Download URL: Headers as Dependencies-0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for Headers as Dependencies-0.3.tar.gz
Algorithm Hash digest
SHA256 4a4b9d0c1e664b263c466cc88ba5130c04835ff341972f8ec53cb0551453a4ff
MD5 79f27231301696d4f09c7226271df3af
BLAKE2b-256 d8bfa215af55ef02a0dad82db41d259eb0056e0fa1a1094375cd81c05611a57b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page