Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I run a build on Windows and Mac in parallel?

We have a currently existing build project for our product on Windows and I want to add building the product on Mac OSX. Since both builds need to synchronize to the same source I want the current build project to figure out the common data and then spawn off another project to synchronize to the same code on the Mac side and the build the Mac side. If I interleave the steps I run into the problem of the PATH environment variable being in the wrong format for one of the operating systems.

If I use .run to kick off a separate project and use '.bset env "PATH=<new PATH>" ' does this effect the project spun off with .run or does it effect the original project?

0 votes



One answer

Permanent link
.run and then .bset in the subsequent step will only affect the original project.  The .run project will run with a copy of the environment variables at the time of the .run getting called.

Alternatively you could create a shell project for Windows and OSX, and associate a specific environment for each and then inline the shared build process (assuming that the build process is the same between the two after the environment is set up).  I like this solution better because the environment would then be saved as an environment in BF and if you need to edit it later or spin off different builds the parts will already be there.

1 vote

Comments

Solution we used was to basically rebuild our environment based on the new OS while using some of the environment values passed in from the parent.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,025
× 17
× 10

Question asked: Jun 13 '12, 3:23 p.m.

Question was seen: 5,186 times

Last updated: Jan 31 '13, 2:37 p.m.

Confirmation Cancel Confirm