Commit graph

11 commits

Author SHA1 Message Date
Martin Kinkelin
e7091dd0c7 Drop support for LLVM < 14
LLVM 14 is the first version supporting both new pass manager and
opaque IR pointers.
2024-05-12 03:53:03 +02:00
Harry Gillanders
696a18b70b
Propagate the target to clang-cl when it's used to preprocess C. (#4627) 2024-04-27 17:23:47 +02:00
Martin Kinkelin
113443db42 Adapt to changed C preprocessor hook 2024-03-03 22:12:16 +01:00
Andrei Horodniceanu
d7f87811f6
support CC envvar to be in the form "command args..." (#4582)
In case CC is set try to split it by spaces into a command and
arguments. This is the same behaviour as in dmd.

Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
2024-02-24 16:46:35 +01:00
Martin Kinkelin
a053480010 Misc. merge fixes (C++) 2023-11-06 00:33:57 +01:00
Martin Kinkelin
7a625251a6 Trace preprocessing times 2023-06-09 16:14:23 +02:00
Martin Kinkelin
04bcdc4d06 Set up MSVC environment for C preprocessing on Windows 2023-06-09 15:33:20 +02:00
Martin Kinkelin
32176ced56 Use proper temp files for preprocessed .i files
I thought DMD would create the temp .i file in the same directory
as the .c file, but it creates it in the current working dir.

Create them in a dedicated new temp directory now, to prevent
collisions (parallel compiler invocations in the same working dir
etc. etc.).
2023-06-07 17:09:25 +02:00
Martin Kinkelin
cf74b3d555 Windows: Prefer clang-cl.exe over cl.exe for C preprocessing 2023-06-07 15:26:08 +02:00
Martin Kinkelin
1bf7e28c59 Add -Xcpp CLI option for C preprocessor flags (-P with ldmd2) 2023-06-07 12:06:25 +02:00
Martin Kinkelin
5b137768a0 Run C preprocessor 2023-06-07 12:06:25 +02:00