aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-31 09:10:27 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-31 09:10:33 +0100
commitc849a30e7e9e2e7608376c9c538e1b45e623c805 (patch)
tree42ca1acf4e3ad567d07bb4ba91c040352bb6e0c4 /src
parent3b2c6275bb18e4d554e6b484837cc95da005bf55 (diff)
Make platforms in project.conf required
Diffstat (limited to 'src')
-rw-r--r--src/Conf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index 7bf5bbc..02e92fe 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -706,6 +706,9 @@ namespace sibs
if((int)packageType == -1)
throw ParserException("Missing required config package.type. Expected to be one either 'executable', 'static', 'dynamic' or 'library'");
finishedProcessing = true;
+
+ if(platforms.empty())
+ throw ParserException("Missing required config package.platforms. If the package supports all platforms, add:\nplatforms = [\"any\"]\nto project.conf under [package]");
}
void SibsTestConfig::processObject(StringView name)