Skip to content

Commit

Permalink
Readability refactor
Browse files Browse the repository at this point in the history
Differential Revision: D68044167

Pull Request resolved: #7611
  • Loading branch information
lucylq authored Jan 13, 2025
1 parent 7aa1ff3 commit 44d223d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shim/xplat/executorch/codegen/codegen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ def build_portable_lib(name, oplist_header_name, feature = None, expose_operator
# Currently fbcode links all dependent libraries through shared
# library, and it blocks users like unit tests to use kernel
# implementation directly. So we enable this for xplat only.
compiler_flags = ["-Wno-missing-prototypes", "-fvisibility=hidden"]
if expose_operator_symbols:
compiler_flags = ["-Wno-missing-prototypes"]
if not expose_operator_symbols:
# Removing '-fvisibility=hidden' exposes operator symbols.
# This allows operators to be called outside of the kernel registry.
compiler_flags = ["-Wno-missing-prototypes"]
compiler_flags += ["-fvisibility=hidden"]

# Build portable lib.
runtime.cxx_library(
Expand Down

0 comments on commit 44d223d

Please sign in to comment.