-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response files #2
Comments
There is no standard for response files; the latest version of prep uses M_CLI2 to parse the command line (it used M_kracken until recently). The M_CLI2 parser supports response files but it's own format. |
It would be possible to read the parameters from the @ file without much effort, but that is not even documented and would work as-is with no alternate preprocessor I know of. I made a wrapper that gets the response file to look at and it does not have a space between -D and -I and the values
so that would be another issue. As appealing as the -fpm-name: parameter seems at first it would be The big advantage of making it work would be that you could use the -D values defined by the ifort command in the source conditionals so you could have prep(1) directives using the INTEL_COMPILER variable automatically (it would then be easy to have conditionals based on the compiler being used, for example. I have a feeling no one is using this because of the response file. Will be interested in the Intel response on response files. |
Let's wait and see. I think the idea of Intel's preprocessor flag is not bad. For "isolated" projects where you are linking exclusively with precompiled shared and static libraries, you can tune the compiler command to your liking via the config file ( For larger codes where you bring in third-party sources which might need other preprocessors (the default fpp or fypp) the config file approach doesn't work. It would seem a better idea to provide compiler wrapper scripts such as |
I use wrappers myself with fpm; as well as the response file supported by M_CLI2. An advantage that a preprocessor called by the compiler has is those -D parameters. I have used the ifort configuration file extensively, as we preferred for years to have static loading the default, etc. You can point to multiple files and supply options via environment variables too, which I sometimes use with fpm instead of specifying a lot of -flag options. I think they got a lot of that right, but the preprocessor option does not seem to be worked out to well for anything except testing different versions of their own fpp program. Really nice idea till reality sets in! |
Does
prep
recognize response files? I could not find the keyword "response" in the documentation at least. If you want to useprep
with the Intel Fortran compiler option-fpp-name
it appears a response file is necessary: aradi/fypp#24The text was updated successfully, but these errors were encountered: