Skip to content

PCbuild/build.bat: pass command line parameters when building PGO#1510

Merged
vstinner merged 1 commit into
python:masterfrom
char101:patch-1
May 9, 2017
Merged

PCbuild/build.bat: pass command line parameters when building PGO#1510
vstinner merged 1 commit into
python:masterfrom
char101:patch-1

Conversation

@char101

@char101 char101 commented May 9, 2017

Copy link
Copy Markdown
Contributor

Custom msbuild properties passed as command line need to be passed too when calling Build when doing PGO build.

Custom msbuild properties passed as command line need to be passed too when calling `Build` when doing PGO build.
@mention-bot

Copy link
Copy Markdown

@char101, thanks for your PR! By analyzing the history of the files in this pull request, we identified @zware and @zooba to be potential reviewers.

@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

Comment thread PCbuild/build.bat
if "%do_pgo%"=="true" (
set conf=PGInstrument
call :Build
call :Build %1 %2 %3 %4 %5 %6 %7 %8 %9

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little concerned about the ^M disappearing from the line. Batch files are very fussy about line endings.

With confirmation that this doesn't break the line ending, I'm good with the fix.

@vstinner vstinner merged commit 291557e into python:master May 9, 2017
@vstinner

vstinner commented May 9, 2017

Copy link
Copy Markdown
Member

With confirmation that this doesn't break the line ending, I'm good with the fix.

In GitHub and on Linux using "git show", it seems like the diff changes the line ending. But it's a bug in these tools, there is no line change. I checked in vim and then with hexdump: 0x0d 0x0a (\r\n) for all lines ;-)

@char101

char101 commented May 10, 2017

Copy link
Copy Markdown
Contributor Author

Batch files with unix line endings works fine in Windows 10 even when calling labels.

When opened with vim, the detected line endings are dos for build.bat. I guess the ^Ms after the labels are not really necessary. Instead any modification should not change the file line endings to LF.

@char101 char101 deleted the patch-1 branch May 12, 2017 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants