summaryrefslogtreecommitdiffhomepage
path: root/configure.pl
blob: 3cebdd6f200b843d04d2f69a5841203de2cd4e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl -w

use strict;
use Cwd;

if ($ENV{USER} ne "root") {
    die "You must be root to run this script.\n";
}

system("sh", "git", "submodule", "update", "--init", "--recursive");

chdir("./toolchains/mingw-w64-nekernel/") or die "Cannot change directory: $!";

system("sh", "configure", "--host=x86_64-w64-mingw32", "--prefix=mingw64-w64-nekernel") or die "Configuration failed: $!";
system("make", "install") or die "Build failed: $!";

print("Configuration and build complete.\nUse 'make install' to install the toolchain.\n");