Changes between Version 17 and Version 18 of WebKitGTK/SpeedUpBuild
- Timestamp:
- Feb 11, 2015, 9:41:57 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitGTK/SpeedUpBuild
v17 v18 338 338 {{{ 339 339 #!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}')" 341 341 }}} 342 342 … … 349 349 {{{ 350 350 #!sh 351 rm -fr WebKitBuild/Release351 $ rm -fr WebKitBuild/Release 352 352 }}} 353 353 2. Ensure that you have installed the symlinks to clang on the icecc dir 354 354 {{{ 355 355 #!sh 356 cd /usr/lib/icecc/bin357 sudo ln -s $(which icecc) clang358 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++ 359 359 }}} 360 360 3. Export the CC and CXX environment variables accordingly: 361 361 {{{ 362 362 #!sh 363 export CC=clang364 export CXX=clang++363 $ export CC=clang 364 $ export CXX=clang++ 365 365 }}} 366 366 4. Build a tgz with your clang toolchain: 367 367 {{{ 368 368 #!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}')" 370 370 }}} 371 371 5. Now you have two options: use ccache in combination with icecc or use icecc alone. … … 374 374 {{{ 375 375 #!sh 376 export PATH="/usr/lib/icecc/bin:${PATH}"376 $ export PATH="/usr/lib/icecc/bin:${PATH}" 377 377 }}} 378 378 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: … … 385 385 {{{ 386 386 #!sh 387 Tools/Scripts/build-webkit --gtk 387 $ export NUMBER_OF_PROCESSORS="$(( $(nproc) * 3 ))" 388 $ Tools/Scripts/build-webkit --gtk 388 389 }}} 389 390 * If you get errors when building try to disable the automatic detection of the gold compiler and start with a clean build 390 391 {{{ 391 392 #!sh 392 rm -fr WebKitBuild/Release393 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" 394 395 }}} 395 396 === icecc troubleshooting ===