mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Issue #23461: Normalise line endings when comparing old and new contents of importlib.h
This commit is contained in:
parent
a750ce3325
commit
a9076d6551
@ -85,8 +85,8 @@
|
||||
<Exec Command='"$(TargetPath)" "$(PySourcePath)Lib\importlib\_bootstrap.py" "$(IntDir)importlib.g.h"' />
|
||||
|
||||
<PropertyGroup>
|
||||
<_OldContent Condition="Exists('$(PySourcePath)Python\importlib.h')">$([System.IO.File]::ReadAllText('$(PySourcePath)Python\importlib.h'))</_OldContent>
|
||||
<_NewContent Condition="Exists('$(IntDir)importlib.g.h')">$([System.IO.File]::ReadAllText('$(IntDir)importlib.g.h'))</_NewContent>
|
||||
<_OldContent Condition="Exists('$(PySourcePath)Python\importlib.h')">$([System.IO.File]::ReadAllText('$(PySourcePath)Python\importlib.h').Replace(`
`, `
`))</_OldContent>
|
||||
<_NewContent Condition="Exists('$(IntDir)importlib.g.h')">$([System.IO.File]::ReadAllText('$(IntDir)importlib.g.h').Replace(`
`, `
`))</_NewContent>
|
||||
</PropertyGroup>
|
||||
|
||||
<Copy SourceFiles="$(IntDir)importlib.g.h"
|
||||
|
Loading…
Reference in New Issue
Block a user