Files
gnat-llvm/llvm-interface/prep.control
Sebastian Poeplau 0711cf80e7 Add compatibility with LLVM 19 using conditional compilation
Use the integrated preprocessor in Ada and the standard C++ preprocessor
to support both LLVM 16 and 19. The Makefile obtains the version from
llvm-config; it forwards it to gprbuild via a scenario variable;
gprbuild configures the preprocessor symbol LLVM_Version_Major
accordingly, so that Ada code can use it for conditional compilation
just like we use LLVM_VERSION_MAJOR in C++.

Issue: eng/toolchain/llvm-project#17
2025-04-28 17:06:43 +02:00

4 lines
107 B
Plaintext

* -c
-- Preprocess all files, but instead of deleting disabled lines turn them into
-- special comments.