mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 01:16:36 +00:00

Extract Flang's runtime library to use the LLVM_ENABLE_RUNTIME mechanism. It will only become active when `LLVM_ENABLE_RUNTIMES=flang-rt` is used, which also changes the `FLANG_INCLUDE_RUNTIME` to `OFF` so the old runtime build rules do not conflict. This also means that unless `LLVM_ENABLE_RUNTIMES=flang-rt` is passed, nothing changes with the current build process. Motivation: * Consistency with LLVM's other runtime libraries (compiler-rt, libc, libcxx, openmp offload, ...) * Allows compiling the runtime for multiple targets at once using the LLVM_RUNTIME_TARGETS configuration options * Installs the runtime into the compiler's per-target resource directory so it can be automatically found even when cross-compiling Also see RFC discussion at https://discourse.llvm.org/t/rfc-use-llvm-enable-runtimes-for-flangs-runtime/80826
25 lines
810 B
CMake
25 lines
810 B
CMake
/*===-- cmake/config.cmake.in ---------------------------------------*- C -*-===
|
|
*
|
|
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
* See https://llvm.org/LICENSE.txt for license information.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*
|
|
*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef FORTRAN_RUNTIME_CONFIG_H
|
|
#define FORTRAN_RUNTIME_CONFIG_H
|
|
|
|
/* Define to 1 if you have the `strerror_r' function. */
|
|
#cmakedefine01 HAVE_STRERROR_R
|
|
|
|
/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
|
|
don't. */
|
|
#cmakedefine01 HAVE_DECL_STRERROR_S
|
|
|
|
/* Define to 1 if you have the `backtrace' function. */
|
|
#cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
|
|
|
|
#define BACKTRACE_HEADER <${BACKTRACE_HEADER}>
|
|
|
|
#endif
|