fix sdk compiling on mac

Signed-off-by: hufeng <hufeng20@huawei.com>
This commit is contained in:
hufeng 2021-09-14 16:42:16 +08:00
parent 3ed43e2f98
commit 6ddc814608
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ ohos_executable("ark_asm") {
"$ark_root/libpandafile:libarkfile_frontend_static",
]
if (!is_mingw && !ark_standalone_build) {
if (!is_mac && !is_mingw && !ark_standalone_build) {
ldflags = [ "-static-libstdc++" ]
}

View File

@ -98,7 +98,7 @@ ohos_executable("ark_disasm") {
"$ark_root/libpandafile:libarkfile_frontend_static",
]
if (!is_mingw && !ark_standalone_build) {
if (!is_mac && !is_mingw && !ark_standalone_build) {
ldflags = [ "-static-libstdc++" ]
}

View File

@ -60,7 +60,6 @@ if (is_mingw) {
"$ark_root/libpandabase/mem/pool_manager.cpp",
"$ark_root/libpandabase/mem/pool_map.cpp",
"$ark_root/libpandabase/os/dfx_option.cpp",
"$ark_root/libpandabase/os/filesystem.cpp",
"$ark_root/libpandabase/os/native_stack.cpp",
"$ark_root/libpandabase/os/property.cpp",
@ -89,6 +88,7 @@ if (is_mingw) {
if (!is_mac) {
libarkbase_sources += [
"$ark_root/libpandabase/os/filesystem.cpp",
"$ark_root/libpandabase/os/unix/exec.cpp",
"$ark_root/libpandabase/os/unix/futex/mutex.cpp",
"$ark_root/libpandabase/os/unix/pipe.cpp",