Allow building libnode on aarch64

This commit is contained in:
Julian Groß 2023-10-09 09:33:11 +02:00 committed by Edgar
parent c7fd18059e
commit a5bbe91b12
No known key found for this signature in database
GPG key ID: 3C2E1F2C1C353131

View file

@ -101,9 +101,13 @@ class libnodeConan(ConanFile):
args += self.__add_shared("zlib", "zlib")
args.append("" if self.settings.build_type == "Release" else "--debug")
args.append("--dest-cpu=%s" % self.settings.arch)
if self.settings.arch == "armv8":
args.append("--dest-cpu=arm64")
else:
args.append("--dest-cpu=%s" % self.settings.arch)
if self.settings.os == "Linux":
if self.settings.os == "Linux" and self.settings.arch != "armv8":
# node doesn't build with the gdb argument on aarch64
args.append("--gdb")
if self.settings.os == "Windows":