Skip to content

Commit

Permalink
Use the --comments preprocessor flag
Browse files Browse the repository at this point in the history
Preserving comments is useful in certain edge cases where the Win32 RC preprocessor behaves differently than other preprocessors. Now that Vexu/arocc#611 has been fixed, we can use this flag.
  • Loading branch information
squeek502 committed Jan 10, 2024
1 parent 8201c95 commit 117c15b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/preprocess.zig
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ fn hasAnyErrors(comp: *aro.Compilation) bool {
pub fn appendAroArgs(arena: Allocator, argv: *std.ArrayList([]const u8), options: cli.Options, system_include_paths: []const []const u8) !void {
try argv.appendSlice(&.{
"-E",
"--comments",
"-fuse-line-directives",
"--target=x86_64-windows-msvc",
"--emulate=msvc",
Expand Down

0 comments on commit 117c15b

Please sign in to comment.