macos: build, warn fix
This commit is contained in:
parent
c73cd58eed
commit
8ed2308340
2 changed files with 5 additions and 6 deletions
|
@ -9,15 +9,14 @@ case $2 in
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! -v SDKROOT ]]; then
|
if [[ "$OSTYPE" != "darwin"* ]]; then
|
||||||
|
if [ -z ${SDKROOT+x} ]; then
|
||||||
echo "MacOS SDKROOT is not set"
|
echo "MacOS SDKROOT is not set"
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ -z "SDKROOT" ]]; then
|
|
||||||
echo "MacOS SDKROOT is set to the empty string"
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
echo "Use MacOS SDK: ${SDKROOT}"
|
echo "Use MacOS SDK: ${SDKROOT}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup build directory
|
# Setup build directory
|
||||||
BASEDIR=$(cd $(dirname $0) && pwd)
|
BASEDIR=$(cd $(dirname $0) && pwd)
|
||||||
|
|
|
@ -241,7 +241,7 @@ impl Content {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
columns[1].vertical_centered_justified(|ui| {
|
columns[1].vertical_centered_justified(|ui| {
|
||||||
View::button_ui(ui, t!("modal_exit.exit"), Colors::white_or_black(false), |ui| {
|
View::button_ui(ui, t!("modal_exit.exit"), Colors::white_or_black(false), |_| {
|
||||||
if !Node::is_running() {
|
if !Node::is_running() {
|
||||||
self.exit_allowed = true;
|
self.exit_allowed = true;
|
||||||
cb.exit();
|
cb.exit();
|
||||||
|
|
Loading…
Reference in a new issue