Repository navigation
Conversation
groups/bsl/CMakeLists.txt tested CXX_COMPILER_ID, which is not a CMake variable, so the MSVC branch never ran and the /bigobj options for bslma, bslstl and bsltf were never applied. Use CMAKE_CXX_COMPILER_ID, as the sibling bal and bdl files do. bdlar_symbolicconverter.cpp needs /bigobj on MSVC when BDE is built without the bde-tools toolchain (see bloomberg#312). The existing bdl flags only cover test drivers (bdlf, bdlcc); apply /bigobj to bdlar's object library as well.
#6045 already fixed the bsl compiler-id typo and added an INTERFACE /bigobj on bdlar. Keep that and add the missing flag to bdlar-iface, the object library that compiles bdlar_symbolicconverter.cpp.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6045 landed the bsl compiler-id fix and added
bdlar INTERFACE /bigobj. This PR now carries the remaining piece:bdlar-ifaceis the OBJECT library that compilesbdlar_symbolicconverter.cpp, and an INTERFACE option onbdlardoes not reach it. Add/bigobjdirectly tobdlar-iface, matching the existingbdlde-ifacecompile options.Why the
bdlarflag is not enoughbbs_setup_target_uorcreates:bdlar-ifaceas the OBJECT library with the package sourcesbdlaras a STATIC library with no sources, linkedPUBLIC bdlar-ifacebdlgroup linksbdlar-ifacedirectlytarget_compile_options(bdlar INTERFACE ...)propagates to targets that linkbdlar, but not tobdlar-iface, whose sources are already compiled. The C1128 failure from #312 happens while compilingbdlar_symbolicconverter.cppintobdlar-iface, so the object target needs the option.Testing
cmake -S . -B _buildsucceeds.cmake --build _build --target bdlarsucceeds, includingbdlar_symbolicconverter.cpp.CMAKE_CXX_COMPILER_ID STREQUAL "MSVC"block.