Giter VIP home page Giter VIP logo

Comments (4)

eunovm avatar eunovm commented on June 13, 2024

Regarding placing command-line arguments in files, GCC also supports this. Please, read this and this. Corresponding files may be temporary as well.

This enhancement can be treated as more generic although it is not specified in the issue description. Indeed, in this way we can process all files that are removed after builds are completed. These files are not necessary temporary ones and they can be even source files.

Another bad case is overwriting required [likely just source] files during builds. Let's assume that for build command A a build process generates source file in.c and then it removes this file and generates one more time but with a different content for build command B. So, in ideal you need to store both versions of the same file and allow to use a required version of it rather easily and efficiently. Although this is possible but it seems to happen much less often than just removing files during builds. Thus, we can keep this in mind but do not implement, as it is quite hard, it complicates usage and breaks performance.

from clade.

17451k avatar 17451k commented on June 13, 2024

My implementation will be very generic: it will allow any extension to perform any action on intercepted build command (including its changing) before its execution. For example, if CC extension will want to save some file that will be overwritten, or to read command-line arguments from a temporary file - it will be able to do so.

And thank you for information about command files - it is quite interesting.

from clade.

17451k avatar 17451k commented on June 13, 2024

Implemented, but currently not used.

from clade.

eunovm avatar eunovm commented on June 13, 2024

I suggest to support an ability to get dependencies for C files as well as to preprocess them in parallel with build (likely there should be an option that will change current implementations slightly rather than a completely different implementations). You can introduce a simple test case that will fail without this, e.g. some header files and even C files can be created and removed during a build.

from clade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.