mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
tools: update gyp-next to 0.20.3
PR-URL: https://github.com/nodejs/node/pull/59603 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
b4f202c2f1
commit
4e02ea1c52
4 files changed
+17
-8
No files matched your search
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## [0.20.3](https://github.com/nodejs/gyp-next/compare/v0.20.2...v0.20.3) (2025-08-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* compilation failure on the OpenHarmony platform ([#301](https://github.com/nodejs/gyp-next/issues/301)) ([0cf7a14](https://github.com/nodejs/gyp-next/commit/0cf7a142be06f686b8b42849791de902f177cf9f))
|
||||
* make xcode_emulation handle `xcodebuild` not in the `PATH` ([#303](https://github.com/nodejs/gyp-next/issues/303)) ([8224dee](https://github.com/nodejs/gyp-next/commit/8224deef984add7e7afe846cfb82c9d3fa6da1fb))
|
||||
|
||||
## [0.20.2](https://github.com/nodejs/gyp-next/compare/v0.20.1...v0.20.2) (2025-06-22)
|
||||
|
||||
|
||||
|
||||
@@ -1880,7 +1880,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
|
||||
self.flavor not in ("mac", "openbsd", "netbsd", "win")
|
||||
and not self.is_standalone_static_library
|
||||
):
|
||||
if self.flavor in ("linux", "android"):
|
||||
if self.flavor in ("linux", "android", "openharmony"):
|
||||
self.WriteMakeRule(
|
||||
[self.output_binary],
|
||||
link_deps,
|
||||
@@ -1894,7 +1894,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
|
||||
part_of_all,
|
||||
postbuilds=postbuilds,
|
||||
)
|
||||
elif self.flavor in ("linux", "android"):
|
||||
elif self.flavor in ("linux", "android", "openharmony"):
|
||||
self.WriteMakeRule(
|
||||
[self.output_binary],
|
||||
link_deps,
|
||||
|
||||
@@ -521,7 +521,7 @@ class XcodeSettings:
|
||||
# most sensible route and should still do the right thing.
|
||||
try:
|
||||
return GetStdoutQuiet(["xcrun", "--sdk", sdk, infoitem])
|
||||
except GypError:
|
||||
except (GypError, OSError):
|
||||
pass
|
||||
|
||||
def _SdkRoot(self, configname):
|
||||
@@ -1354,7 +1354,7 @@ class XcodeSettings:
|
||||
return default_sdk_root
|
||||
try:
|
||||
all_sdks = GetStdout(["xcodebuild", "-showsdks"])
|
||||
except GypError:
|
||||
except (GypError, OSError):
|
||||
# If xcodebuild fails, there will be no valid SDKs
|
||||
return ""
|
||||
for line in all_sdks.splitlines():
|
||||
@@ -1508,7 +1508,8 @@ def XcodeVersion():
|
||||
raise GypError("xcodebuild returned unexpected results")
|
||||
version = version_list[0].split()[-1] # Last word on first line
|
||||
build = version_list[-1].split()[-1] # Last word on last line
|
||||
except GypError: # Xcode not installed so look for XCode Command Line Tools
|
||||
except (GypError, OSError):
|
||||
# Xcode not installed so look for XCode Command Line Tools
|
||||
version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322
|
||||
if not version:
|
||||
raise GypError("No Xcode or CLT version detected!")
|
||||
@@ -1541,14 +1542,14 @@ def CLTVersion():
|
||||
try:
|
||||
output = GetStdout(["/usr/sbin/pkgutil", "--pkg-info", key])
|
||||
return re.search(regex, output).groupdict()["version"]
|
||||
except GypError:
|
||||
except (GypError, OSError):
|
||||
continue
|
||||
|
||||
regex = re.compile(r"Command Line Tools for Xcode\s+(?P<version>\S+)")
|
||||
try:
|
||||
output = GetStdout(["/usr/sbin/softwareupdate", "--history"])
|
||||
return re.search(regex, output).groupdict()["version"]
|
||||
except GypError:
|
||||
except (GypError, OSError):
|
||||
return None
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "gyp-next"
|
||||
version = "0.20.2"
|
||||
version = "0.20.3"
|
||||
authors = [
|
||||
{ name="Node.js contributors", email="ryzokuken@disroot.org" },
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user