Trick-17 / clang-build

Clang-based cross platform build system written in Python
https://clang-build.readthedocs.io
MIT License
8 stars 3 forks source link

Allow building C code #58

Closed GPMueller closed 6 years ago

GPMueller commented 6 years ago

The type of a source could be determined from its file ending (a sensible requirement that C and only C files have .c endings). The object should then be compiled with the appropriate compiler and the C++ default flags should be replaced by C default flags.

We should definitely build a small MWE for

GPMueller commented 6 years ago

Did some work on this on `feature-sources-patterns' with ec5df33eb3dbc233af4017e504410fb2bea26f27.

GPMueller commented 6 years ago

Added test with c4ec9f5be00e852c8a692c99369c05568b015cf7 and tested some more with 08616723ca40f617406a5fb8a9f3dd1cef775dc7 and it seems to be working well (See PR #63). Since the latter commit, also Objective C files (.m ending) can be built.

GPMueller commented 6 years ago

Merged with 013871d3d3b8d789c61b9f5d0f574ba0f295cec8.