mirror of
https://github.com/openharmony/third_party_lzma.git
synced 2026-07-01 02:07:13 -04:00
An error is reported during the compilation of the x86 architecture
Signed-off-by: zhou_xq <zhouxiaoqin4@huawei.com>
This commit is contained in:
@@ -68,6 +68,17 @@ ohos_source_set("lzma_source_arm64") {
|
||||
sources += arm64_asm_source
|
||||
}
|
||||
|
||||
# on device
|
||||
ohos_source_set("lzma_source_x86") {
|
||||
configs = [ ":lzma_config_common" ]
|
||||
public_configs = [ ":lzma_config_common" ]
|
||||
|
||||
include_dirs = [ "Asm/x86" ]
|
||||
cflags = [ "-march=x86-64" ]
|
||||
|
||||
sources = common_c_source
|
||||
}
|
||||
|
||||
# on host
|
||||
ohos_source_set("lzma_source_arm_host") {
|
||||
configs = [
|
||||
@@ -140,7 +151,10 @@ ohos_shared_library("lzma_shared") {
|
||||
deps = [ ":lzma_source_arm64" ]
|
||||
} else if (target_cpu == "riscv64") {
|
||||
deps = [ ":lzma_source_riscv64" ]
|
||||
} else if (target_cpu == "x86_64") {
|
||||
deps = [ ":lzma_source_x86" ]
|
||||
}
|
||||
|
||||
innerapi_tags = [
|
||||
"chipsetsdk_sp_indirect",
|
||||
"platformsdk_indirect",
|
||||
|
||||
Reference in New Issue
Block a user