Fix Excluding Logic for Preprocessor #2813
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
This PR should fix issue #2795 reported by @CodingWonders
Testing
Compiled WinUtil successfully in both PowerShell 5 & 7, and the main issue of
.git
getting corrupted by the preprocessor shouldn't happen again.Impact
This won't impact End-Users, but the Developers who work on WinUtil (to be specific, devs who work in PowerShell 5 environment, which we're currently supporting with PowerShell 7).
Issue related to PR
.git
folder in PowerShell 5 #2795Additional Information
This was reported first by @CodingWonders on WinUtil Community Discord, so thanks again for notifying me (and others) about this issue 😄.
Also, I do realize that the preprocessor is very slow at the moment ( considering it doesn't do that complex of a task :/ ), will try to optimize / make it feature complete in the future, but for the time being.. my bad for wasting your time in compile times 🙃.
Checklist