-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add toolchain support #140
Comments
I have taken the automated approach to the toolchains; the user should not need to specify the toolchains manually. We detect the proper toolchain based on the compiler settings and the target system. For example, for the msvc toolchain: project_options/src/VCEnvironment.cmake Lines 58 to 64 in 370900d
|
We already detect MinGW and apply some fixes for it for VCPKG. You can use the same function to detect MinGW and include its toolchain. project_options/src/MinGW.cmake Line 4 in 370900d
|
* add mingw toolchains * add docker for testing
* add mingw toolchains * add docker for testing
* add mingw toolchains * add docker for testing
* add docker-compose
* fix path in toolchain
Add function to setup
-DCMAKE_TOOLCHAIN_FILE
/-DVCPKG_TOOLCHAIN_FILE
andinclude()
toolchain via-DOPT_TARGET_TRIPLET:STRING=x64-mingw-dynamic
option.Example:
project_options( TARGET_TRIPLET "x64-mingw-dynamic" )
or with cmake arguments:
VCPKG_HOST_TRIPLET
,VCPKG_TRIPLET
andDVCPKG_CHAINLOAD_TOOLCHAIN_FILE
- https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md-DOPT_TARGET_TRIPLET
:x64-mingw-dynamic
,x64-mingw-static
- for Windows buildsx86-mingw-dynamic
,x86-mingw-static
- for Windows builds (32-Bit) (optional?)arm64-linux
,arm-linux
orarm64-windows
,arm-windows
- for ARM buildswasm32-emscripten
- for WebASM/Emscripten (optional)-DANDROID_NDK
and-DANDROID_ABI
emscript
,set_target_properties(${target} PROPERTIES LINK_FLAGS "-s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY -s USE_PTHREADS=1 --bind")
Notes
Upvote & Fund
I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered: