Hi,
v8_optimized_debug = false gives the following:
ninja: Entering directory `
out.gn/x64.release'
[1/1] Regenerating ninja files
[1184/2682] LINK ./v8_cppgc_shared_unittests
FAILED: v8_cppgc_shared_unittests
TOOL_VERSION=1602521620 ../../build/toolchain/mac/linker_driver.py
-Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip
../../third_party/llvm-build/Release+Asserts/bin/clang++ -B
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
-Wl,-fatal_warnings -stdlib=libc++ -arch x86_64 -Werror -isysroot
../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
-mmacosx-version-min=10.10.0 -Wl,-ObjC -Wl,-rpath,@loader_path/.
-Wl,-rpath,@loader_path/../../.. -o "./v8_cppgc_shared_unittests"
-Wl,-filelist,"./v8_cppgc_shared_unittests.rsp"
./libv8_cppgc_shared_for_testing.dylib ./libv8_libbase.dylib
ld: warning: direct access in function
'testing::internal::SuiteApiResolver<testing::internal::(anonymous
namespace)::FailureTest>::GetSetUpCaseOrSuite(char const*, int)' from
file 'obj/third_party/googletest/gtest/gtest.o' to global weak symbol
'testing::Test::SetUpTestSuite()' from file
'obj/test/unittests/v8_cppgc_shared_unittests_sources/worklist-unittest.o'
means the weak symbol cannot be overridden at runtime. This was likely
caused by different translation units being compiled with different
visibility settings.
ld: warning: direct access in function
'testing::internal::SuiteApiResolver<testing::internal::(anonymous
namespace)::FailureTest>::GetSetUpCaseOrSuite(char const*, int)' from
file 'obj/third_party/googletest/gtest/gtest.o' to global weak symbol
'testing::Test::SetUpTestCase()' from file
'obj/test/unittests/v8_cppgc_shared_unittests_sources/worklist-unittest.o'
means the weak symbol cannot be overridden at runtime. This was likely
caused by different translation units being compiled with different
visibility settings.
ld: warning: direct access in function
'testing::internal::SuiteApiResolver<testing::internal::(anonymous
namespace)::FailureTest>::GetTearDownCaseOrSuite(char const*, int)'
from file 'obj/third_party/googletest/gtest/gtest.o' to global weak
symbol 'testing::Test::TearDownTestSuite()' from file
'obj/test/unittests/v8_cppgc_shared_unittests_sources/worklist-unittest.o'
means the weak symbol cannot be overridden at runtime. This was likely
caused by different translation units being compiled with different
visibility settings.
ld: warning: direct access in function
'testing::internal::SuiteApiResolver<testing::internal::(anonymous
namespace)::FailureTest>::GetTearDownCaseOrSuite(char const*, int)'
from file 'obj/third_party/googletest/gtest/gtest.o' to global weak
symbol 'testing::Test::TearDownTestCase()' from file
'obj/test/unittests/v8_cppgc_shared_unittests_sources/worklist-unittest.o'
means the weak symbol cannot be overridden at runtime. This was likely
caused by different translation units being compiled with different
visibility settings.
ld: fatal warning(s) induced error (-fatal_warnings)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/mac/linker_driver.py", line 287, in <module>
Main(sys.argv)
File "../../build/toolchain/mac/linker_driver.py", line 97, in Main
subprocess.check_call(compiler_driver_args, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command
'['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-B',
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/',
'-Wl,-fatal_warnings', '-stdlib=libc++', '-arch', 'x86_64', '-Werror',
'-isysroot', '../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk',
'-mmacosx-version-min=10.10.0', '-Wl,-ObjC',
'-Wl,-rpath,@loader_path/.', '-Wl,-rpath,@loader_path/../../..', '-o',
'./v8_cppgc_shared_unittests',
'-Wl,-filelist,./v8_cppgc_shared_unittests.rsp',
'./libv8_cppgc_shared_for_testing.dylib', './libv8_libbase.dylib']'
returned non-zero exit status 1
[1189/2682] ACTION //:run_gen-regexp-s...-case(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.