V8 build failing for static libs on windows: VS 2017, Windows 10
FAILED: cctest.exe cctest.exe.pdb
ninja -t msvc -e environment.x64 -- ../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo /OUT:./cctest.exe /PDB:./cctest.exe.pdb @./cctest.exe.rsp
../../third_party/llvm-build/Release+Asserts/bin\lld-link.exe: error: <root>: undefined symbol: mainCRTStartup
ninja: build stopped: subcommand failed.
Build process does create libs but when try to link these to any project:
out.gn\x64.release\obj\v8_base.lib : fatal error LNK1127: library is corrupt
Same results for ia32 target cpu.
FAILED: cctest.exe cctest.exe.pdb
ninja -t msvc -e environment.x86 -- ../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo /OUT:./cctest.exe /PDB:./cctest.exe.pdb @./cctest.exe.rsp
../../third_party/llvm-build/Release+Asserts/bin\lld-link.exe: error: <root>: undefined symbol: _mainCRTStartup
ninja: build stopped: subcommand failed.
Any help would be appreciated.
Thanks
Ajit