Giter Site home page Giter Site logo

Comments (5)

kiranchandramohan avatar kiranchandramohan commented on August 18, 2024 1

The driver is in the classic-flang-llvm-project repository. https://github.com/flang-compiler/classic-flang-llvm-project
There is no intention to provide a driver in this repo.

Some docs are available in https://github.com/flang-compiler/flang/wiki/Introduction-to-Flang

from flang.

kiranchandramohan avatar kiranchandramohan commented on August 18, 2024 1

The driver for classic flang is in the clang folder. https://github.com/flang-compiler/classic-flang-llvm-project/blob/release_15x/clang/lib/Driver/ToolChains/ClassicFlang.cpp

For the specific flag you are mentioning it is here : https://github.com/flang-compiler/classic-flang-llvm-project/blob/cd736e11b188a8f6ff14041abd818ad86f36b9bb/clang/lib/Driver/ToolChains/ClassicFlang.cpp#L205

from flang.

dmikushin avatar dmikushin commented on August 18, 2024

Thanks for the docs, but I don't understand. And I have a growing feeling that those who answer me here don't understand much either.

This project is a legacy of PGI. I see PGI macros are still here in the source, even some ashes of FLEXLM license manager are still here. We all know how the PGI compiler driver looks like, what options it has, such as -Minfo, -Maccel and so on. Do you mean that now it has to play with the in-tree LLVM flang somehow? This is totally weird, because in-tree Flang has no connection to PGI, and follows LLVM's own options.

from flang.

dmikushin avatar dmikushin commented on August 18, 2024

Screenshot from 2023-06-22 19-00-05

This can't be true, because classic-flang-llvm-project does not provide support for PGI-specific compiler options used in CMake by this project, such as -Mreentrant and others such as -no-flang-libs:

marcusmae@predator ~/f/f/c/s/c/runtime (master)> grep "flang-libs" * -R
flang/CMakeLists.txt:  SET(CMAKE_SHARED_LINKER_FLAGS "-no-flang-libs")
flang/CMakeLists.txt:  SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -no-flang-libs")

marcusmae@predator ~/f/f/c/s/classic-flang-llvm-project (release_16x)> grep "flang-libs" * -R
marcusmae@predator ~/f/f/c/s/classic-flang-llvm-project (release_16x)> 

from flang.

dmikushin avatar dmikushin commented on August 18, 2024

Thanks, I've figured out that needed options are implemented in release_15x branch, but not in release_16x.

Sorry!

from flang.

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.