Skip to content

Commit

Permalink
Output MTR_AVAILABLE, not API_AVAILABLE for Darwin codegen. (project-…
Browse files Browse the repository at this point in the history
…chip#1146)

This lets us control exactly what things expand to via our defines header.
  • Loading branch information
bzbarsky-apple authored Sep 21, 2023
1 parent 7818be8 commit 333e4c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ async function availability(clusterName, options) {
let availabilityStrings = Object.entries(introducedVersions).map(
([os, version]) => `${os}(${version})`
);
return `API_AVAILABLE(${availabilityStrings.join(', ')})`;
return `MTR_AVAILABLE(${availabilityStrings.join(', ')})`;
}

if (!options.hash.deprecationMessage) {
Expand All @@ -719,7 +719,7 @@ async function availability(clusterName, options) {
let availabilityStrings = Object.entries(introducedVersions).map(
([os, version]) => `${os}(${version})`
);
return `API_AVAILABLE(${availabilityStrings.join(
return `MTR_AVAILABLE(${availabilityStrings.join(
', '
)})\nMTR_NEWLY_DEPRECATED("${options.hash.deprecationMessage}")`;
}
Expand Down

0 comments on commit 333e4c3

Please sign in to comment.