-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v8 11.8.172支持linux的ue #16
Comments
对于1,原以为降级到9.4用的clang(通过DEPS修改)能解决,实际上并不能,包括把sysroot也降级了也不行,不知道为何9.4编译就是libc++,最后面通过加入-stdlib=libc++显式指定,但又带来新问题,会找不到c++的头文件,切换到系统的clang++也一样,最终找到是-no-canonical-prefixes编译参数所致,该参数google也搜索不到。 最终形成方案1: |
方案2思路是还使用clang 17(不过得改为用系统的,而不是v8自己下载的),并且通过-D_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT=1解决符号问题: 1、config/compiler/build.gn 加入:-stdlib=libc++ -D_LIBCPP_AVAILABILITY_HAS_NO_VERBOSE_ABORT=1
|
主要有两个问题:
1、链接的是libstdc++,但ue链接的是libc++,9.4、8.4都没这问题,但10.6以上都是链接libstdc++;
2、11.8用clang 17编译,链接到ue会报Undefined symbols "std::__1::__libcpp_verbose_abort(char const*, ...)
The text was updated successfully, but these errors were encountered: