You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the upcoming build2 release (0.17.0) we have tightened the c.std value check for MSVC. For details, see: build2/build2#383
That change uncovered that this package uses c.std=gnu99 which, naturally, cannot be satisfied by MSVC. So it would be helpful to fix this with a revision before the 0.17.0 release (in a few weeks).
As to how to fix this, I think it would be good to first understand whether the gnu part is actually necessary by trying to CI the package with c.std=99. If it runs out it's not necessary, then that's the fix. Of course, it's possible that the source code detects whether the GNU extensions are available and does something suboptimal if not, so it makes sense to also check the source code and upstream documentation.
If it turns out that gnu99 is necessary, then the correct way to do it is:
using c.guess
c.std = ($c.class == 'gcc' ? gnu99 : 99)
using c
The text was updated successfully, but these errors were encountered:
In the upcoming
build2
release (0.17.0
) we have tightened thec.std
value check for MSVC. For details, see: build2/build2#383That change uncovered that this package uses
c.std=gnu99
which, naturally, cannot be satisfied by MSVC. So it would be helpful to fix this with a revision before the0.17.0
release (in a few weeks).As to how to fix this, I think it would be good to first understand whether the
gnu
part is actually necessary by trying to CI the package withc.std=99
. If it runs out it's not necessary, then that's the fix. Of course, it's possible that the source code detects whether the GNU extensions are available and does something suboptimal if not, so it makes sense to also check the source code and upstream documentation.If it turns out that
gnu99
is necessary, then the correct way to do it is:The text was updated successfully, but these errors were encountered: