summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 16:31:54 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 22:15:33 +0100
commita38c6682e4fb1f45aa1f37d10c2480aa517ea3bc (patch)
treed767d3f18eab231fdd0cff8fdd0c602869c42848 /src/ctor.h
parente4ccfe780f52cdb6c0764074effcd60235d33762 (diff)
Make sure libctor itself is built in the 'build' system and not 'host' system. Only detect tooling for the system/tools actually required in the tasks.
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ctor.h b/src/ctor.h
index 1b6c560..3b64cb5 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -201,7 +201,7 @@ struct build_configuration
{
std::string name; // Name - used for referring in other configurations.
ctor::target_type type{ctor::target_type::automatic};
- ctor::output_system system{ctor::output_system::host};
+ ctor::output_system system{ctor::output_system::build};
std::string target; // Output target file for this configuration
std::vector<ctor::source> sources; // source list
std::vector<std::string> depends; // internal target dependencies
@@ -225,7 +225,7 @@ struct external_manual
struct external_configuration
{
std::string name; // Name for configuration
- ctor::output_system system{ctor::output_system::host};
+ ctor::output_system system{ctor::output_system::build};
std::variant<ctor::external_manual> external;
};