summaryrefslogtreecommitdiffstats
path: root/build/features.py
diff options
context:
space:
mode:
authorRJ Skerry-Ryan <rryan@mixxx.org>2019-12-22 07:12:52 -0800
committerRJ Skerry-Ryan <rryan@mixxx.org>2019-12-22 07:13:07 -0800
commit5a0e711f81541dd8e8b9e480cb0e9100d96e6feb (patch)
tree95a1e3a251479f7a36273ca5d57b094d0df87ef0 /build/features.py
parent7229998fd2d77e3ec1ffd54efe0b739102fbc73c (diff)
Move build.flags['shoutcast_internal'] assignment to `enabled` to avoid a KeyError in `sources` when `configure` is skipped.
Diffstat (limited to 'build/features.py')
-rw-r--r--build/features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/features.py b/build/features.py
index 29ddee2932..cb82637e14 100644
--- a/build/features.py
+++ b/build/features.py
@@ -682,6 +682,7 @@ class LiveBroadcasting(Feature):
def enabled(self, build):
build.flags['shoutcast'] = util.get_flags(build.env, 'shoutcast', 1)
+ build.flags['shoutcast_internal'] = util.get_flags(build.env, 'shoutcast_internal', 0)
if int(build.flags['shoutcast']):
return True
return False
@@ -696,7 +697,6 @@ class LiveBroadcasting(Feature):
build.env.Append(CPPDEFINES='__BROADCAST__')
- build.flags['shoutcast_internal'] = util.get_flags(build.env, 'shoutcast_internal', 0)
if build.platform_is_linux and not int(build.flags['shoutcast_internal']):
# Check if system lib is lower 2.4.2 or 2.4.3 and not suffering bug
# https://bugs.launchpad.net/mixxx/+bug/1833225