arithy / packcc

A parser generator for C
Other
349 stars 29 forks source link

Addition of a build system generator #3

Closed elfring closed 2 years ago

elfring commented 5 years ago

I suggest to reuse a higher level build system than your current make scripts so that powerful checks for software features will become easier.

arithy commented 5 years ago

Thank you for your proposal. Currently, I don't plan to use them since the source code of packcc is already portable enough. I might begin to consider using the tools when a user of a platform other than Linux, BSD, macOS, and Windows appears.

elfring commented 5 years ago
arithy commented 4 years ago

I want basically users to prepare their own build environment, because:

Again, I have no plan to use CMake or Autotools for now because I don't feel their necessity as for PackCC.

andrewchambers commented 3 years ago

Autotools is often worse than useless, not only is it a required dependency, but can dramatically slow down the build because the configure scripts are comically slow.

My suggestion would be to perhaps delete the makefiles entirely.

arithy commented 2 years ago

@elfring, I'm going to close this issue because it seems that most people don't feel this issue is an issue. If you have any objection against closing this issue, let me know by the end of this month (Aug. 2022).

elfring commented 2 years ago

:thought_balloon: I hope that interests can grow also for applications of build system generators.

arithy commented 2 years ago

It might be just your impression, and isn't persuasive.

masatake commented 2 years ago

@arithy How about adding a FAQ entry to README.md?

e.g.

diff --git a/README.md b/README.md
index 7510d17..e4a4e9e 100644
--- a/README.md
+++ b/README.md
@@ -705,3 +705,15 @@ int main() {
 You can find the more practical example in the directory [`examples/ast-tinyc`](examples/ast-tinyc).
 It builds an AST (abstract syntax tree) from an input source file
 written in [Tiny-C](http://www.iro.umontreal.ca/~felipe/IFT2030-Automne2002/Complements/tinyc.c) and dump the AST.
+
+## FAQ ##
+
+<dl>
+   <dt>Will you support another build system than other Make?</dt>
+   <dd>No. I have no plan to use CMake or Autotools for now because I don't feel their necessity as for PackCC.</dd>
+   <dt>Which language is assumed for building packcc command?</dt>
+   <dd>C language. C++ is not assumed for building packcc command.</dd>
+   <dt>Which language is assumed for compiling the source code generated by packcc?</dt>
+   <dd>C language. C++ language is not assumed for compiling the source code generated by packcc.
+       However, you can link the object code compiled from the source code to your C++ code.</dd>
+</dl>
arithy commented 2 years ago

@masatake, it's a good idea. Thank you for the suggestion. I'll add the FAQs.

elfring commented 2 years ago

I have no plan to use CMake or Autotools for now because I don't feel their necessity as for PackCC.

:crystal_ball: Under which circumstances will software users feel the need for increasing applications of known functionality?

arithy commented 2 years ago

I stated https://github.com/arithy/packcc/issues/3#issuecomment-565802937 as the reason why I don't feel their necessity. The discussion will become an infinite loop. I have decided to close this issue.