mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Add interactive-mode support for setting the compiler binary.
This commit is contained in:
parent
9133e8b340
commit
032a1f8567
12
configure
vendored
12
configure
vendored
@ -143,9 +143,15 @@ if ($interactive) {
|
||||
|
||||
$config{CXX} = find_compiler($config{CXX} // $ENV{CXX});
|
||||
unless ($config{CXX}) {
|
||||
print "A suitable C++ compiler could not be detected on your system!\n";
|
||||
print "Set the CXX environment variable to the compiler binary path if this is incorrect.\n";
|
||||
exit 1;
|
||||
say 'A suitable C++ compiler could not be detected on your system!';
|
||||
unless ($interactive) {
|
||||
say 'Set the CXX environment variable to the path to a C++ compiler binary if this is incorrect.';
|
||||
exit 1;
|
||||
}
|
||||
until ($config{CXX}) {
|
||||
my $compiler_path = prompt_string 1, 'Please enter the path to a C++ compiler binary:', 'c++';
|
||||
$config{CXX} = find_compiler $compiler_path;
|
||||
}
|
||||
}
|
||||
my %compiler = get_compiler_info($config{CXX});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user