Lines Matching +full:flang +full:- +full:build

15 # sufficient to generate the module file via -fsyntax-only.
35 # Check if 128-bit float computations can be done via long double.
55 # these module files will be contributed from the CMakeLists in flang/tools/f18.
58 # Create module files directly from the top-level module source directory.
59 # If CMAKE_CROSSCOMPILING, then the newly built flang executable was
60 # cross compiled, and thus can't be executed on the build system and thus
72 set(opts -fc1 -xcuda)
75 set(opts -fc1 -xcuda)
95 set(opts "--target=ppc64le")
104 set(decls "-DFLANG_SUPPORT_R16")
109 set(compile_with "-fsyntax-only")
114 set(compile_with -c -o ${object_output})
119 # TODO: We may need to flag this with conditional, in case Flang is built w/o OpenMP support
121 COMMAND ${CMAKE_COMMAND} -E make_directory ${FLANG_INTRINSIC_MODULES_DIR}
122 COMMAND flang ${opts} ${decls} -cpp ${compile_with} -module-dir ${FLANG_INTRINSIC_MODULES_DIR}
124 DEPENDS flang ${FLANG_SOURCE_DIR}/module/${filename}.f90 ${FLANG_SOURCE_DIR}/module/__fortran_builtins.f90 ${depends}
127 install(FILES ${base}.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang")
148 COMMAND ${CMAKE_COMMAND} -E make_directory ${FLANG_INTRINSIC_MODULES_DIR}
149 COMMAND flang -cpp -fsyntax-only ${opts} -module-dir ${FLANG_INTRINSIC_MODULES_DIR}
151 DEPENDS flang ${FLANG_INTRINSIC_MODULES_DIR}/iso_c_binding.mod ${CMAKE_BINARY_DIR}/projects/openmp/runtime/src/omp_lib.F90 ${depends}
155 COMMAND ${CMAKE_COMMAND} -E copy ${base}.mod ${base}.f18.mod)
158 COMMAND ${CMAKE_COMMAND} -E copy ${base}_kinds.mod ${base}_kinds.f18.mod)
160 install(FILES ${base}.mod ${base}.f18.mod ${base}_kinds.mod ${base}_kinds.f18.mod DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang")
167 set_target_properties(module_files PROPERTIES FOLDER "Flang/Resources")
173 file(COPY ${CMAKE_BINARY_DIR}/projects/openmp/runtime/src/omp_lib.h DESTINATION "${CMAKE_BINARY_DIR}/include/flang/OpenMP/" FILE_PERMISSIONS OWNER_READ OWNER_WRITE)
174 install(FILES ${CMAKE_BINARY_DIR}/include/flang/OpenMP/omp_lib.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/flang/OpenMP")