Skip to content

Instantly share code, notes, and snippets.

@jiixyj
Last active January 17, 2018 12:36
Show Gist options
  • Save jiixyj/a39b9fbafaf660235af06c563ef332d8 to your computer and use it in GitHub Desktop.
Save jiixyj/a39b9fbafaf660235af06c563ef332d8 to your computer and use it in GitHub Desktop.
diff --git a/ClangPowerTools/ClangPowerTools/clang-build.ps1 b/ClangPowerTools/ClangPowerTools/clang-build.ps1
index 26b7bbb..8522955 100644
--- a/ClangPowerTools/ClangPowerTools/clang-build.ps1
+++ b/ClangPowerTools/ClangPowerTools/clang-build.ps1
@@ -1585,7 +1585,7 @@ Function Get-ProjectPreprocessorDefines()
# make sure we add the required prefix and escape double quotes
[string[]]$defines = ( $tokens | `
Where-Object { $_ } | `
- ForEach-Object { ($kClangDefinePrefix + $_) -replace '"','"""' } )
+ ForEach-Object { ('"' + $kClangDefinePrefix + $_ + '"') } )
if (Is-Project-Unicode)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment