mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Add -Xcpp CLI option for C preprocessor flags (-P with ldmd2)
This commit is contained in:
parent
5b137768a0
commit
1bf7e28c59
5 changed files with 23 additions and 13 deletions
|
@ -46,7 +46,9 @@ FileName runCPreprocessor(FileName csrcfile, const Loc &loc, bool &ifile,
|
|||
for (const auto &ccSwitch : opts::ccSwitches) {
|
||||
args.push_back(ccSwitch);
|
||||
}
|
||||
// TODO: -Xcpp switches?
|
||||
for (const auto &cppSwitch : opts::cppSwitches) {
|
||||
args.push_back(cppSwitch);
|
||||
}
|
||||
|
||||
if (isMSVC) {
|
||||
args.push_back("/P"); // run preprocessor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue