-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
Suggestion: Fortran support #870
Comments
If more than 5 people want xmake to support fortran, I will consider supporting it. |
This is excellent advice, and I also hope that |
I am supporting it, please see #882 If you can give me some examples of static libraries and dynamic library projects about fortran, maybe I will deal with them faster. |
I have supported gfortran compiler. Please update to dev version and try it. Console project$ xmake create -l fortran -t console test
$ cd test
$ xmake xmake.lua add_rules("mode.debug", "mode.release")
target("test")
set_kind("binary")
add_files("src/*.f90") Static library project$ xmake create -l fortran -t static test
$ cd test
$ xmake Shared library project$ xmake create -l fortran -t shared test
$ cd test
$ xmake |
Build xmake master on FreeBSD 12:
Created a sample project
Then, the following error occurs:
|
@interkosmos What's your fortran compiler? gfortran? please run |
|
Please enter the non-project directory and run |
|
ok, can you run the following commands and get me output again. thanks. cd test
xmake f -c -vD
xmake -vD |
|
I have fixed it. Please update to the lasted commit version and try it again. |
Can confirm, works. |
Ok. |
now I have also supported for Intel Fortran Compiler on linux/macOS/windows. xmake f --toolchain=ifort -c
xmake |
Any chance that modern Fortran (2003/2008/2018) will be added to xmake? GNU Fortran, for instance, is part of GCC and close to the C compiler.
The text was updated successfully, but these errors were encountered: