Changes between Version 17 and Version 18 of WebKitGTK/SpeedUpBuild


Ignore:
Timestamp:
Feb 11, 2015 9:41:57 AM (9 years ago)
Author:
clopez@igalia.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitGTK/SpeedUpBuild

    v17 v18  
    338338{{{
    339339#!sh
    340 export ICECC_VERSION="$(pwd)/$(icecc --build-native|tee /dev/stderr|grep creating|awk '{print $2}')"
     340$ export ICECC_VERSION="$(pwd)/$(icecc --build-native|tee /dev/stderr|grep creating|awk '{print $2}')"
    341341}}}
    342342
     
    349349{{{
    350350#!sh
    351 rm -fr WebKitBuild/Release
     351$ rm -fr WebKitBuild/Release
    352352}}}
    3533532. Ensure that you have installed the symlinks to clang on the icecc dir
    354354{{{
    355355#!sh
    356 cd /usr/lib/icecc/bin
    357 sudo ln -s $(which icecc) clang
    358 sudo ln -s $(which icecc) clang++
     356$ cd /usr/lib/icecc/bin
     357$ sudo ln -s $(which icecc) clang
     358$ sudo ln -s $(which icecc) clang++
    359359}}}
    3603603. Export the CC and CXX environment variables accordingly:
    361361{{{
    362362#!sh
    363 export CC=clang
    364 export CXX=clang++
     363$ export CC=clang
     364$ export CXX=clang++
    365365}}}
    3663664. Build a tgz with your clang toolchain:
    367367{{{
    368368#!sh
    369 export ICECC_VERSION="$(pwd)/$(/usr/lib/icecc/icecc-create-env --clang /usr/bin/clang /usr/lib/icecc/compilerwrapper|tee /dev/stderr|grep creating|awk '{print $2}')"
     369$ export ICECC_VERSION="$(pwd)/$(/usr/lib/icecc/icecc-create-env --clang /usr/bin/clang /usr/lib/icecc/compilerwrapper|tee /dev/stderr|grep creating|awk '{print $2}')"
    370370}}}
    3713715. Now you have two options: use ccache in combination with icecc or use icecc alone.
     
    374374{{{
    375375#!sh
    376 export PATH="/usr/lib/icecc/bin:${PATH}"
     376$ export PATH="/usr/lib/icecc/bin:${PATH}"
    377377}}}
    378378  5.2. On the other hand, if you want to use ccache, then export your PATH to include first the ccache directory and set the CCACHE_PREFIX environment variable:
     
    385385{{{
    386386#!sh
    387 Tools/Scripts/build-webkit --gtk
     387$ export NUMBER_OF_PROCESSORS="$(( $(nproc) * 3 ))"
     388$ Tools/Scripts/build-webkit --gtk
    388389}}}
    389390  * If you get errors when building try to disable the automatic detection of the gold compiler and start with a clean build
    390391{{{
    391392#!sh
    392 rm -fr WebKitBuild/Release
    393 Tools/Scripts/build-webkit --gtk --cmakeargs="-DUSE_LD_GOLD=OFF"
     393$ rm -fr WebKitBuild/Release
     394$ Tools/Scripts/build-webkit --gtk --cmakeargs="-DUSE_LD_GOLD=OFF"
    394395}}}
    395396=== icecc troubleshooting ===