Remove cmake: false
in C target (and use CMake to finally create a nice, modular build ✨)?
#1245
petervdonovan
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
This seems like a roadblock that I did not know about:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a continuation of the discussion started here. The proposal is to remove the
cmake
target property and to remove the logic in the C Generator that picks out which files to copy into thesrc-gen
folder so that that logic can be implemented in CMake instead.Code that could be removed from our compiler includes:
doGenerate
inCGenerator.java
around here, here, and hereThe total amount of code deleted might be only a few hundred lines, and that would be either partially or completely offset by the rewriting of the deleted code in CMake. However, I think complexity would be reduced in terms of:
lingua-franca
repo in sync with a change to the file structure of the C runtimeRedundancy and separation of concerns are the primary motivators of this suggestion. An example of redundancy is that
reactor-c
already has a skeletal toy implementation of a CMake-only build process because we needed it for unit tests.This issue is not very important to me. The reason why I bring it up is that after discussing it with Marten and Soroush, I am still not aware of use-cases for
cmake: false
, and if anyone knows of use-cases, I would like to understand them. To my knowledge, CMake probably can be used for cross-compilation to baremetal/embedded platforms; furthermore, if it cannot be used for that, then a drop-in replacement for CMake might be supplied using the build target property.Beta Was this translation helpful? Give feedback.
All reactions