mirror of
https://gitee.com/openharmony/third_party_libffi
synced 2024-11-26 20:50:43 +00:00
fix x86-64 bug
Signed-off-by: cyberbox <468042667@qq.com>
This commit is contained in:
parent
ce0fd31b6e
commit
11f14b52e5
19
BUILD.gn
19
BUILD.gn
@ -115,7 +115,22 @@ action("libffi_action") {
|
||||
}
|
||||
|
||||
config("ffi_public_config") {
|
||||
include_dirs = [ "$libffi_dir/include" ]
|
||||
if (target_cpu == "arm") {
|
||||
include_dirs = [
|
||||
"$libffi_dir/include",
|
||||
"$libffi_dir/src/arm",
|
||||
]
|
||||
} else if (target_cpu == "x86_64") {
|
||||
include_dirs = [
|
||||
"$libffi_dir/include",
|
||||
"$libffi_dir/src/x86",
|
||||
]
|
||||
} else {
|
||||
include_dirs = [
|
||||
"$libffi_dir/include",
|
||||
"$libffi_dir/src/aarch64",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
ohos_shared_library("ffi") {
|
||||
@ -165,7 +180,9 @@ ohos_shared_library("ffi") {
|
||||
"$libffi_dir/src/tramp.c",
|
||||
"$libffi_dir/src/types.c",
|
||||
"$libffi_dir/src/x86/ffi64.c",
|
||||
"$libffi_dir/src/x86/ffiw64.c",
|
||||
"$libffi_dir/src/x86/unix64.S",
|
||||
"$libffi_dir/src/x86/win64.S",
|
||||
]
|
||||
} else {
|
||||
include_dirs = [
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user