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
Specifies additional compiler flags that will be used when compiling C
sources.
and while in GCC it is documented to only apply to C sources it also applies to C++ sources, see also boostorg/build#548
When cflags applies to C++ sources too there is no way to require some flags only for C sources. I don't know which solution is better but at least it should be consistent, and some sort of C-only flags feature is needed. Either cflags becomes C-only and cfamilyflags is added if needed, or cflags is consistently becomes C and C++ flags and conlyflags is added to solve C-only flags need.
The text was updated successfully, but these errors were encountered:
compileflags
is documented but ignored by every toolset except crayb2/src/tools/features/compileflags-feature.jam
Lines 10 to 13 in f10c1d2
cflags
is documented and implemented in different places differentlyb2/src/tools/features/cflags-feature.jam
Lines 10 to 15 in f10c1d2
b2/src/tools/gcc.jam
Lines 43 to 45 in f10c1d2
and while in GCC it is documented to only apply to C sources it also applies to C++ sources, see also boostorg/build#548
When
cflags
applies to C++ sources too there is no way to require some flags only for C sources. I don't know which solution is better but at least it should be consistent, and some sort of C-only flags feature is needed. Eithercflags
becomes C-only andcfamilyflags
is added if needed, orcflags
is consistently becomes C and C++ flags andconlyflags
is added to solve C-only flags need.The text was updated successfully, but these errors were encountered: