diff --git a/BUILD.gn b/BUILD.gn index 7a759eb43d25305fdde74bc626f3940529b5e510..9636bdb7284b28700a87a53430309708a34265b4 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -364,6 +364,7 @@ if (defined(ohos_lite)) { "SystemConfiguration.framework", ] } else if ("${current_cpu}" == "arm64" || "${current_cpu}" == "arm" || + "${current_cpu}" == "loongarch64" || "${current_cpu}" == "x86_64") { cflags = [ "-fPIC", @@ -523,6 +524,7 @@ if (defined(ohos_lite)) { "SystemConfiguration.framework", ] } else if ("${current_cpu}" == "arm64" || "${current_cpu}" == "arm" || + "${current_cpu}" == "loongarch64" || "${current_cpu}" == "x86_64") { cflags = [ "-fPIC",