Hi all.

I want to embed V8 into my application. I used to link with libstdc++, but 
since a few months, V8 has a static_assert std::is_standard_layout that 
breaks when using libstdc++. I do not want to link with the custom libcxx 
that is shipped with V8.

How can I configure V8 to compile and link with my system libc++? So far 
I've set use_glib=false use_custom_libcxx=false , but that doesn't seem to 
be enough.
Here is how the compiler is invoked:

/usr/bin/clang++ -MMD -MF 
obj/torque_generated_definitions/objects-printer.o.d -DUSE_UDEV 
-DUSE_AURA=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 
-D_GNU_SOURCE -DCOMPONENT_BUILD -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 
-DCPPGC_VERIFY_HEAP -DENABLE_DISASSEMBLER 
-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE 
-DOBJECT_PRINT -DVERIFY_HEAP -DV8_TRACE_MAPS -DV8_ENABLE_ALLOCATION_TIMEOUT 
-DV8_ENABLE_FORCE_SLOW_PATH -DV8_ENABLE_DOUBLE_CONST_STORE_CHECK 
-DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_CODE_COMMENTS 
-DV8_ENABLE_DEBUG_CODE -DV8_ENABLE_HEAP_SNAPSHOT_VERIFY 
-DV8_SNAPSHOT_NATIVE_CODE_COUNTERS -DV8_ATOMIC_OBJECT_FIELD_WRITES 
-DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_SHARED_RO_HEAP 
-DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH 
-DV8_SHORT_BUILTIN_CALLS -DV8_EXTERNAL_CODE_SPACE -DV8_ENABLE_MAGLEV 
-DV8_ENABLE_WEBASSEMBLY -DV8_ALLOCATION_FOLDING 
-DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DV8_USE_ZLIB 
-DV8_USE_LIBM_TRIG_FUNCTIONS -DV8_ENABLE_WASM_SIMD256_REVEC 
-DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS 
-DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH 
-DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS 
-DV8_IMMINENT_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP 
-DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DV8_TARGET_ARCH_X64 
-DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDEBUG -DV8_RUNTIME_CALL_STATS 
-DBUILDING_V8_SHARED -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 
-DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 
-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUSING_V8_BASE_SHARED 
-I../../../../../../third-party/v8/v8 -Igen 
-I../../../../../../third-party/v8/v8/include -Igen/include 
-I../../../../../../third-party/v8/v8/third_party/icu/source/common 
-I../../../../../../third-party/v8/v8/third_party/icu/source/i18n -Wall 
-Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive 
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter 
-Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration 
-Wenum-compare-conditional -Wno-ignored-pragma-optimize 
-Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wshadow 
-fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing 
--param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread 
-fcolor-diagnostics -fmerge-all-constants 
-fcrash-diagnostics-dir=../../../../../../third-party/v8/v8/tools/clang/crashreports
 
-mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -m64 -msse3 
-Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= 
-ffile-compilation-dir=. -no-canonical-prefixes 
-ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -gdwarf-4 -g2 
-gdwarf-aranges -gsplit-dwarf -ggnu-pubnames -Xclang -fuse-ctor-homing 
-fvisibility=hidden -Wheader-hygiene -Wstring-conversion 
-Wtautological-overlap-compare -Wmissing-field-initializers 
-Wunreachable-code -Wctad-maybe-unsupported -Wno-shadow -Wshorten-64-to-32 
-O3 -fdata-sections -ffunction-sections -fno-unique-section-names 
-Wexit-time-destructors -Wno-undefined-bool-conversion 
-Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs 
-gsimple-template-names -fno-exceptions -fno-rtti 
-fvisibility-inlines-hidden -c gen/torque-generated/objects-printer.cc -o 
obj/torque_generated_definitions/objects-printer.o

There is no -stdlib=libc++ in there...

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/c50505ad-50eb-4b28-8753-9054e8ab8728n%40googlegroups.com.

Reply via email to