Skip to content

Commit

Permalink
Fix application_extension linkopt into -fapplication-extension.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 249132047
  • Loading branch information
sergiocampama authored and swiple-rules-gardener committed May 20, 2019
1 parent f717006 commit 8a7a7cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apple/internal/rule_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ _RULE_TYPE_DESCRIPTORS = {
app_icon_extension = ".appiconset",
bundle_extension = ".appex",
extra_linkopts = [
# Migrate to -fapplication-extension, like the other rules, once ios_extension is
# migrated to a proper rule and not a macro with an apple_binary.
"-application_extension",
"-e",
"_NSExtensionMain",
],
Expand Down Expand Up @@ -250,7 +253,7 @@ _RULE_TYPE_DESCRIPTORS = {
bundle_extension = ".appex",
deps_cfg = apple_common.multi_arch_split,
extra_linkopts = [
"-application_extension",
"-fapplication-extension",
"-e",
"_NSExtensionMain",
],
Expand Down Expand Up @@ -548,7 +551,7 @@ _RULE_TYPE_DESCRIPTORS = {
extra_linkopts = [
"-e",
"_TVExtensionMain",
"-application_extension",
"-fapplication-extension",
"-framework",
"TVServices",
],
Expand Down Expand Up @@ -639,7 +642,7 @@ _RULE_TYPE_DESCRIPTORS = {
bundle_extension = ".appex",
deps_cfg = apple_common.multi_arch_split,
extra_linkopts = [
"-application_extension",
"-fapplication-extension",
],
product_type = apple_product_type.watch2_extension,
rpaths = [
Expand Down

0 comments on commit 8a7a7cb

Please sign in to comment.