DescriptionRevert of Allocator shims working on VS2015. (patchset #12 id:220001 of https://codereview.chromium.org/1414453017/ )
Reason for revert:
We're seeing probably the same or similar issue when linking on win again.
https://build.chromium.org/p/chromium/builders/Win/builds/45048
FAILED: blacklist_test_main_dll.dll blacklist_test_main_dll.dll.lib blacklist_test_main_dll.dll.pdb
C:\b\depot_tools\python276_bin\python.exe gyp-win-tool link-with-manifests environment.x86 True blacklist_test_main_dll.dll "C:\b\depot_tools\python276_bin\python.exe gyp-win-tool link-wrapper environment.x86 False link.exe /nologo /IMPLIB:blacklist_test_main_dll.dll.lib /DLL /OUT:blacklist_test_main_dll.dll @blacklist_test_main_dll.dll.rsp" 2 mt.exe rc.exe "obj\chrome_elf\blacklist_test_main_dll.blacklist_test_main_dll.dll.intermediate.manifest" obj\chrome_elf\blacklist_test_main_dll.blacklist_test_main_dll.dll.generated.manifest
allocator.lib(allocator.allocator_shim_win.obj) : error LNK2005: __query_new_mode already defined in libucrt.lib(new_mode.obj)
allocator.lib(allocator.allocator_shim_win.obj) : error LNK2005: __set_new_mode already defined in libucrt.lib(new_mode.obj)
allocator.lib(allocator.allocator_shim_win.obj) : error LNK2005: _calloc already defined in libucrt.lib(calloc.obj)
allocator.lib(allocator.allocator_shim_win.obj) : error LNK2005: _free already defined in libucrt.lib(free.obj)
allocator.lib(allocator.allocator_shim_win.obj) : error LNK2005: _malloc already defined in libucrt.lib(malloc.obj)
blacklist_test_main_dll.dll : fatal error LNK1169: one or more multiply defined symbols found
Let me revert this CL to see if the revert fixes the build breakage.
Original issue's description:
> Allocator shims working on VS2015.
>
> VS2015 is happy for us to simply override the CRT symbols since they
> seem to be defined weakly by the universal CRT.
>
> This shim is far simpler than the previous one, as the libcmt stripping
> technique can be removed.
>
> Allocator shim is also now only be enabled on Release Static builds.
>
> BUG=481611
> TEST=base_unittests --gtest_filter=*Memory* in all configurations
> (Debug/Release/Static/Component/GN/gyp/x64/x86)
> CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel
>
> Committed: https://crrev.com/e20c2e0ab4e5b796e7a1890fb9048b5eb307d015
> Cr-Commit-Position: refs/heads/master@{#383810}
>
> Committed: https://crrev.com/08a9665ab0bce3813425f8d7ec9bec9178d5faa4
> Cr-Commit-Position: refs/heads/master@{#384711}
TBR=thakis@chromium.org,brucedawson@chromium.org,rnk@chromium.org,piman@chromium.org,primiano@chromium.org,wfh@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=481611
Patch Set 1 #
Messages
Total messages: 13 (3 generated)
|