Introduce the CMake switch FLANG_INCLUDE_RUNTIME. When set to off, do not add build instructions for the runtime. This is required for Flang-RT (#110217) and the current runtime CMake code to co-exist. When using `LLVM_ENABLE_RUNTIME=flang-rt`, the in-tree build instructions are in conflict and must be disabled.
13 lines
299 B
Fortran
13 lines
299 B
Fortran
! UNSUPPORTED: system-windows
|
|
! REQUIRES: flang-rt
|
|
! Verify that flang can correctly build executables.
|
|
|
|
! RUN: %flang %s -o %t
|
|
! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%llvmshlibdir" %t | FileCheck %s
|
|
! RUN: rm -f %t
|
|
|
|
! CHECK: Hello, World!
|
|
program hello
|
|
print *, "Hello, World!"
|
|
end program
|