llvm-project/flang/tools
Andrzej Warzynski dda366ed37 [flang][cmake] Make CMake copy "omp_lib.h" into the build directory
Any header or module file in the Flang source directory is of no use to
the compiler unless it is copied into the build directory. Indeed, all
compiler search paths are relative to the compiler executable (flang-new
in our case). Hence, "omp_lib.h" should be copied into the build
directory alongside other compiler-provided files that can be "included"
(header files) or "used" (module files).

For now, "omp_lib.h" is copied into "<build-dir>/include/flang/OpenMP".
We may decide to change this in future. For example, Clang copies a
bunch of runtime headers into “<build-dir>/lib/clang/<version-number>”.
We could also consider using a similar header from a different
sub-project.

Flang's driver search path is updated accordingly. A rule for
"installing" the "omp_lib.h" header is _yet to be added_ (we will also
need to determine the suitable location for this).

Differential Revision: https://reviews.llvm.org/D122015
2022-04-05 08:25:26 +00:00
..
bbc [flang] Add lowering C interoperability test 2022-03-23 15:23:34 +01:00
f18 [flang][cmake] Make CMake copy "omp_lib.h" into the build directory 2022-04-05 08:25:26 +00:00
f18-parse-demo [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
fir-opt [mlir][NFC] Rename StandardToLLVM to FuncToLLVM 2022-03-07 11:25:23 -08:00
flang-driver [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
tco [mlir][NFC] Rename StandardToLLVM to FuncToLLVM 2022-03-07 11:25:23 -08:00
.clang-tidy [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
CMakeLists.txt [flang] Initial lowering for empty program 2022-01-28 22:39:58 +01:00