From 47d73c2b8c40fce369edb697e2a6f97fd025aa4b Mon Sep 17 00:00:00 2001 From: mrlop233 Date: Fri, 9 May 2025 14:51:20 +0800 Subject: [PATCH] Disable compiler optimization to avoid build fail Signed-off-by: mrlop233 --- BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 7826d23..b0cfd0c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Huawei Device Co., Ltd. +# Copyright (C) 2023-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -87,6 +87,7 @@ ohos_shared_library("libfuse") { "-Wl,--as-needed", "-shared", "-fPIC", + "-Wl,-mllvm,-import-instr-limit=0", ] innerapi_tags = [ "platformsdk" ] external_deps = [ "c_utils:utils" ]