Coder Social home page Coder Social logo

output settings ignored about fobis HOT 5 CLOSED

Tobychev avatar Tobychev commented on August 20, 2024
output settings ignored

from fobis.

Comments (5)

szaghi avatar szaghi commented on August 20, 2024

Hi Tomas,
I have forgotten to update the documentation and the fobos example. For improve "fobos" features, some of its item have been renamed. In the earliest version of fobos you rename the target with "output=..."; in the last version this item has been renamed in "o=...". I am sorry, I update the documentation immediately.

from fobis.

szaghi avatar szaghi commented on August 20, 2024

Hi Tomas, I have just uploaded the new documentation with correct syntax of fobos file. Please, note also two other differences with respect older versions:

  1. the default value of "cflags" has been eliminated;
  2. the fobos definition of "cflags", "lflags" and "preproc" overload (sum to) rather than override the value passed by means of the command line.

This is because i like to perform test on-the-fly, thus to a baseline fobos options of compilation flags I often sum some particular options by the command line, without the necessity of write a new fobos file. I you do not like such a behavior I can make this optional...

from fobis.

Tobychev avatar Tobychev commented on August 20, 2024

Hi Stefano,
I understand the convenience of having short names for command line use, but I think there should also be verbose names for use in configuration files. Because configuration files are (in part) intended to make it possible to modify a certain build long after it was first was configured (and when the poor-fortran-man has forgotten all the details), it is pretty important that the meaning of the config options are clear from their names.

So I would like it if you could add the long name for output back into the config files.

I don't have a strong opinion about appending command line flags to the configuration file flags, the only case where this would give unexpected results is if you give flags to the compiler by accident. But that seems hard to do, why would you put flags there if you don't want them?

from fobis.

szaghi avatar szaghi commented on August 20, 2024

Hi Tomas,
you are right: for the fobos file it is better to have verbose (clear and meaningful) names... tomorrow I will fix this issue.

As the possibility to overload config file options is concerned, I just think that it can be useful. Let us suppose we have made a basic fobos where cflags=-O2 among other options. Now we want to compile in debug mode but we are so lazy that we do not like to write another fobos file. To this purpose, overload cflags rather than override is useful because typing FoBoS.py build -clfags '-C -g' (with the orginal fobos) we finally obtain cflags=-C -g -O2... However, I have already planned to make this feature optional (or to remove it).

Thank you for your help

from fobis.

Tobychev avatar Tobychev commented on August 20, 2024

This seems fine

from fobis.

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.