summaryrefslogtreecommitdiff
path: root/src/configure.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 11:06:44 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 11:06:44 +0100
commitd157b9f4cccab36eaf72c0dfc1541e5247340851 (patch)
tree9fe2abef03f09d55e1a577a2797c92004d6af869 /src/configure.cc
parent916060cb53fddb94f64b20d3616e7360c5e91f64 (diff)
Fix configure.cc generation for resolved externals.
Diffstat (limited to 'src/configure.cc')
-rw-r--r--src/configure.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/configure.cc b/src/configure.cc
index 34812fa..8e88092 100644
--- a/src/configure.cc
+++ b/src/configure.cc
@@ -552,20 +552,20 @@ int regenerateCache(ctor::settings& settings,
return 1;
}
- if(!resolved_flags.cxxflags.empty())
+ if(!resolved_flags.cflags.empty())
{
- istr << " .cxxflags = {";
- for(const auto& flag : resolved_flags.cxxflags)
+ istr << " .cflags = {";
+ for(const auto& flag : resolved_flags.cflags)
{
istr << flag << ",";
}
istr << "},\n";
}
- if(!resolved_flags.cflags.empty())
+ if(!resolved_flags.cxxflags.empty())
{
- istr << " .cflags = {";
- for(const auto& flag : resolved_flags.cflags)
+ istr << " .cxxflags = {";
+ for(const auto& flag : resolved_flags.cxxflags)
{
istr << flag << ",";
}