-
Notifications
You must be signed in to change notification settings - Fork 30
build-toolchain.sh: add D and OpenMP checks #61
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -164,6 +164,16 @@ function make_br_fragment { | |
| else | ||
| echo "# BR2_TOOLCHAIN_EXTERNAL_FORTRAN is not set" >> ${fragment_file} | ||
| fi | ||
| if grep -q "BR2_TOOLCHAIN_BUILDROOT_DLANG=y" ${configfile}; then | ||
| echo "BR2_TOOLCHAIN_EXTERNAL_DLANG=y" >> ${fragment_file} | ||
| else | ||
| echo "# BR2_TOOLCHAIN_EXTERNAL_DLANG is not set" >> ${fragment_file} | ||
| fi | ||
| if grep -q "BR2_GCC_ENABLE_OPENMP=y" ${configfile}; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be BR2_TOOLCHAIN_HAS_OPENMP ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So It seems this script is not really accurate...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we have to use BR2_TOOLCHAIN_BUILDROOT_* we're looking for the features the buildroot tool chain is being built with so that we can then flag the EXTERNAL flags when it's used by subsequent BR project as an external toolchain. The BR2_TOOLCHAIN_BUILDROOT_xxx and BR2_TOOLCHAIN_EXTERNAL_xxx (depending on the BR config) drive the unified BR2_TOOLCHAIN_HAS_xxx option for packages to check to see if a feature is enabled
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right but my comment is about how the script is written, the generated config fragment should be the same with either BR2_TOOLCHAIN_BUILDROOT_xxx or BR2_TOOLCHAIN_HAS_xxx.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: BR2_TOOLCHAIN_EXTERNAL_DLANG will no longer be a problem since gcc 12 requires a D compiler on the host. Currently Buildroot doesn't check for DLANG on the host, so we can't enable the D backend on gcc 12.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whatever we do needs to be reflected in https://gitlab.com/vfazio/buildroot/-/blob/248bdb63544ae4442cfbd20e32615bf12b3d8c9b/support/scripts/gen-bootlin-toolchains#L381 |
||
| echo "BR2_TOOLCHAIN_EXTERNAL_OPENMP=y" >> ${fragment_file} | ||
| else | ||
| echo "# BR2_TOOLCHAIN_EXTERNAL_OPENMP is not set" >> ${fragment_file} | ||
| fi | ||
| if grep -q "BR2_TOOLCHAIN_HAS_SSP=y" ${configfile}; then | ||
| echo "BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y" >> ${fragment_file} | ||
| else | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BR2_TOOLCHAIN_HAS_DLANG ?