Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Issue 11044024: Implement multi-core builds in MSVS (Closed)

Created:
8 years, 2 months ago by Sam Clegg
Modified:
8 years, 2 months ago
Reviewers:
noelallen1, binji
Visibility:
Public.

Description

Implement multi-core builds. This is done using a cl.exe compatability wrapper around gcc that supports multiple sources files and builds them in parallel. BUG= Committed: https://code.google.com/p/nativeclient-sdk/source/detail?r=1430

Patch Set 1 #

Total comments: 38

Patch Set 2 : fix nits #

Total comments: 2

Patch Set 3 : find python #

Patch Set 4 : #

Messages

Total messages: 5 (0 generated)
Sam Clegg
Initial version of the muilticore builder. Not yet ready for submit...
8 years, 2 months ago (2012-10-03 22:09:57 UTC) #1
binji
http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py File visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py (right): http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py#newcode1 visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:1: #!/usr/bin/env python add license header http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py#newcode9 visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:9: import time ...
8 years, 2 months ago (2012-10-03 22:52:13 UTC) #2
Sam Clegg
http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py File visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py (right): http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py#newcode1 visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:1: #!/usr/bin/env python On 2012/10/03 22:52:13, binji wrote: > add ...
8 years, 2 months ago (2012-10-04 22:57:57 UTC) #3
binji
lgtm http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py File visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py (right): http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py#newcode33 visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:33: def BuildSerial(base_cmd, outpath, files): On 2012/10/04 22:57:57, Sam ...
8 years, 2 months ago (2012-10-04 23:27:31 UTC) #4
Sam Clegg
8 years, 2 months ago (2012-10-05 21:11:19 UTC) #5
http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAd...
File
visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py
(right):

http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAd...
visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:86:
sys.stderr.write(stdout)
On 2012/10/04 23:27:31, binji wrote:
> On 2012/10/04 22:57:57, Sam Clegg wrote:
> > On 2012/10/03 22:52:13, binji wrote:
> > > why write stdout from compiler to stderr?
> > 
> > Good question.  Visual studio doesn't display stdout
> > from cl.exe it seems.  Only shows stderr.  Do we case if
> > GCC stdout is lost?  I imagine all the important stuff is
> > on stderr already right?   As it stands I link we are already loosing
stdout.
> 
> OK, might add a comment then.

Done.

http://codereview.chromium.org/11044024/diff/1/visual_studio/NativeClientVSAd...
visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:140:
Trace("done build of %d sources" % (len(files)))
On 2012/10/04 23:27:31, binji wrote:
> On 2012/10/04 22:57:57, Sam Clegg wrote:
> > On 2012/10/03 22:52:13, binji wrote:
> > > what about when the build fails?
> > 
> > Well spotted.  Amazingly (you are not going to believe this)
> > visual studio seems to look at the error messages on stdout
> > to decide if the build failed and not at the return code.
> > 
> > I will fix this anyway... and double confirm what I am seeing.
> 
> Haha, I actually meant the Trace is displaying that the build finished the
> sources, even though it may not have.

Done.

http://codereview.chromium.org/11044024/diff/6001/visual_studio/NativeClientV...
File
visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py
(right):

http://codereview.chromium.org/11044024/diff/6001/visual_studio/NativeClientV...
visual_studio/NativeClientVSAddIn/InstallerResources/NaCl/compiler_wrapper.py:152:
main(sys.argv[1:])
On 2012/10/04 23:27:31, binji wrote:
> sys.exit(...) to send the errorcode (as long as you made the change above)

Done.

Powered by Google App Engine
This is Rietveld 408576698