Skip to content

Commit

Permalink
set proper triplets for all Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Cocoa <[email protected]>
Co-authored-by: Lukas Backström (FKA Larsson) <[email protected]>
  • Loading branch information
cocoa-xu and garazdawi committed Nov 27, 2024
1 parent 783478e commit cea3638
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions erts/emulator/utils/make_version
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ my $architecture = shift;
defined $architecture or die "No architecture specified";
$architecture =~ s&^.*[/\\]&&; # Remove directory part if any

if ($architecture eq "win32") {
if (%ENV{"CONFIG_SUBTYPE"} eq "arm64" || %ENV{"CONFIG_SUBTYPE"} eq "x64_arm64") {
$architecture = "aarch64-pc-windows";
} elsif (%ENV{"CONFIG_SUBTYPE"} eq "win64") {
$architecture = "x86_64-pc-windows";
} elsif (%ENV{"CONFIG_SUBTYPE"} eq "win32") {
$architecture = "i686-pc-windows";
}
}

open(FILE, ">$outputfile") or die "Can't create $outputfile: $!";

print FILE <<EOF;
Expand Down

0 comments on commit cea3638

Please sign in to comment.