-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support both -arg and /arg with msvc/clang-cl without altering paths
34c6f9a added support for /arg flags by replacing the initial slash with a -, and falling back to normal argument parsing. Unfortunately, when running clang-cl on a non-Windows system, that means absolute paths get garbled, and that can lead to bad argument parsing with separate arguments (e.g. -I /absolute/path). We change the arguments definition for MSVC to include both styles, by hacking up a macro that generates two lists, one with - arguments, and one with / arguments. Merging the two lists at build time doesn't seem possible without going full procedural macro. Fixes #669
- Loading branch information
Showing
1 changed file
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters