From dde53ca131bc03795b36ba24dbd20535d794b8a9 Mon Sep 17 00:00:00 2001 From: "Di Xu (SWE)" Date: Thu, 17 Apr 2025 15:00:04 -0700 Subject: [PATCH] Fix undefined fht_float in Apple OS (#10280) Summary: Fix undefined fht_float in Apple OS - Added the lib source file for default OS: executorch/extension/llm/custom_ops/spinquant/third-party/FFHT/targets.bzl - Other changes are auto-gen by the linter ``` source ~/.bashrc cd ~/fbsource/fbcode/executorch conda activate executorch lintrunner -a ``` Differential Revision: D73213645 --- .../llm/custom_ops/spinquant/third-party/FFHT/targets.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extension/llm/custom_ops/spinquant/third-party/FFHT/targets.bzl b/extension/llm/custom_ops/spinquant/third-party/FFHT/targets.bzl index 9ba0ae32fb4..d99f7418b30 100644 --- a/extension/llm/custom_ops/spinquant/third-party/FFHT/targets.bzl +++ b/extension/llm/custom_ops/spinquant/third-party/FFHT/targets.bzl @@ -19,6 +19,9 @@ def define_common_targets(): "DEFAULT": [], "ovr_config//cpu:arm64": ["fht_neon.c"], "ovr_config//cpu:x86_64": ["fht_avx.c"], + "ovr_config//os:iphoneos": ["fht_avx.c"], + "ovr_config//os:macos-x86_64": ["fht_avx.c"], + "ovr_config//os:macos-arm64": ["fht_neon.c"], }), exported_headers = ["fht.h"], visibility = ["@EXECUTORCH_CLIENTS"],