mozilla

Compare Revisions

Building Firefox OS

Change Revisions

Revision 480761:

Revision 480761 by cadecairos on

Revision 481411:

Revision 481411 by cadecairos on

Title:
Building Firefox OS
Building Firefox OS
Slug:
Mozilla/Firefox_OS/Building
Mozilla/Firefox_OS/Building
Tags:
"Guide", "B2G", "Firefox OS", "Build documentation"
"Guide", "B2G", "Firefox OS", "Build documentation"
Content:

Revision 480761
Revision 481411
t288      This is because XCode 5 changes the gcc and g++ compilers it288      This is because XCode 5 changes the gcc and g++ compilers i
>n <code>/usr/bin</code>, which breaks the build process if you tr>n <code>/usr/bin</code>, which breaks the build process if you tr
>y to use them to compile. In order to work around the problem, yo>y to use them to compile. In order to work around the problem man
>u can manually change instances of <code>g++</code> and <code>gcc>ually edit the following line in <code>build/core/combo/HOST_darw
></code>&nbsp; to <code>llvm-g++-4.2</code> and <code>llvm-gcc-4.2>in-x86.mk</code>:
></code>&nbsp; in the following files:<br> 
289      <br>
290      Inside <code>objdir-gecko/_virtualenv/lib/python2.7/config/
>Makefile</code>: 
291    </p>
292    <ul>
293      <li>CC
294      </li>
295      <li>CXX
296      </li>
297    </ul>
298    <p>289    </p>
299      Inside <code>build/core/combo/HOST_darwin-x86.mk</code>:290    <pre>
291HOST_CXX := g++
292</pre>
300    </p>293    <p>
301    <ul>294      To
302      <li>HOST_OBJCC
303      </li>
304      <li>HOST_CC
305      </li>
306      <li>HOST_CXX
307      </li>
308    </ul>
309    <p>295    </p>
310      You should add the following lines to your <code>.userconfi
>g</code> file: 
311    </p>296    <pre>
312    <pre class="brush: bash">297HOST_CXX := g++-4.6
313export CXX=llvm-g++-4.2298ifeq (,$(wildcard /usr/local/bin/g++-4.6))
314export CC=llvm-gcc-4.2299 HOST_CXX := g++
315export CPP=llvm-gcc-4.2300endif

Back to History