Skip to content
Snippets Groups Projects
Verified Commit affbacac authored by Saurabh Kumar's avatar Saurabh Kumar :computer:
Browse files

chore (lfortran): remove unnecessary compiler flag set in `CMAKE_Fortran_COMPILE_OBJECT`

Compilation with `--generate-object-code` flag is responsible for the build failure described
in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091023. This flag is better passed via
the `CMAKE_Fortran_FLAGS` variable to avoid overriding essential compiler behavior.
parent ef6f5774
No related branches found
No related tags found
No related merge requests found
Pipeline #429385 waiting for manual action
......@@ -9,6 +9,6 @@ set(CMAKE_Fortran_LINKER_WRAPPER_FLAG "-Wl,")
set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "--cpp")
set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_OFF "--no-cpp")
set(CMAKE_Fortran_PREPROCESS_SOURCE "<CMAKE_Fortran_COMPILER> --cpp <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> --cpp-infer <DEFINES> <INCLUDES> <FLAGS> --generate-object-code -c <SOURCE> -o <OBJECT>")
set(CMAKE_Fortran_COMPILE_OBJECT "<CMAKE_Fortran_COMPILER> --cpp-infer <DEFINES> <INCLUDES> <FLAGS> -c <SOURCE> -o <OBJECT>")
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "--shared")
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-export-dynamic")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment