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

When building Flang with Clang, we need to do the same quadmath.h wrapping as we do for flang-rt. I extracted the CMake code into FlangCommon.cmake, and cleaned up the arguments passing to execute_process (note that `-###` was treated as `-` in the original code, because `#` starts a comment). I believe the Clang command does not require the input source file, so I removed it as well.
10 lines
407 B
C
10 lines
407 B
C
/*===-- cmake/quadmath_wrapper.h.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
|
|
*
|
|
*===----------------------------------------------------------------------===*/
|
|
|
|
#include ${FLANG_INCLUDE_QUADMATH_H}
|