build icon indicating copy to clipboard operation
build copied to clipboard

i486 build defaults to -march=i686 even if -march is specified via CXXFLAGS

Open kwinsch opened this issue 6 years ago • 3 comments

I export the CFLAGS, CXXFLAGS and ASFLAGS via a conan profile, which includes some default CXXFLAGS, including the correct -march, -mtune and other optimizations for an intel Atom prozessor. Unfortunatly, the boost build system is defaulting to i686, even when -march=silvermont -mtune=silvermont -mfpmath=sse (Bay Trail Intel Atom) is specified. The reason seems to be in https://github.com/boostorg/build/blob/develop/src/tools/gcc.jam#L1190 . Unfortunatly the list is outdated and is not matching the current one, valid for gcc 8.3+.

I suggest to default to the supplied -march, if specified via the CXXFLAGS and only default to i686, if the information is missing.

kwinsch avatar Aug 08 '19 12:08 kwinsch

/cc @grafikrobot

SSE4 avatar Aug 08 '19 13:08 SSE4

FYI, you can select the target instruction set by adding instruction-set=... to b2 command line.

Lastique avatar Oct 05 '19 20:10 Lastique

Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2 This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.

stale[bot] avatar May 29 '21 18:05 stale[bot]