87 | | 3. Pass the flag ```-DCMAKE_TOOLCHAIN_FILE``` to cmake to the path of the toolchainfile.cmake that buildroot generates. If you use the WebKit internal tooling for building (script Tools/Scripts/build-jsc) you can do that by simply exporting this environment variable: |
88 | | {{{ |
89 | | export BUILD_JSC_ARGS="--cmakeargs=-DCMAKE_TOOLCHAIN_FILE=${BR2_HOST_DIR}/usr/share/buildroot/toolchainfile.cmake" |
| 87 | 3. Pass the flag ```-DCMAKE_TOOLCHAIN_FILE``` to cmake to the path of the toolchainfile.cmake that buildroot generates. [[BR]] |
| 88 | If you use the script [https://trac.webkit.org/browser/trunk/Tools/Scripts/build-jsc build-jsc] for building, then you can do that by exporting the environment variable ```BUILD_JSC_ARGS``` as follows: |
| 89 | {{{ |
| 90 | export BUILD_JSC_ARGS="--cmakeargs=-DCMAKE_TOOLCHAIN_FILE=${BR2_HOST_DIR}/usr/share/buildroot/toolchainfile.cmake" |
| 91 | Tools/Scripts/build-jsc --jsc-only --release |