Skip to content

Commit

Permalink
move build.flags['shoutcast_internal'] above the enabled() check to a…
Browse files Browse the repository at this point in the history
…void a KeyError when configure() is skipped.
  • Loading branch information
daschuer committed Jan 11, 2020
1 parent e77284e commit 78e39ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,12 +828,12 @@ def add_options(self, build, vars):
vars.Add('shoutcast_internal', 'Set to 1 to use internal libshout', 0)

def configure(self, build, conf):
build.flags['shoutcast_internal'] = util.get_flags(build.env, 'shoutcast_internal', 0)
if not self.enabled(build):
return

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
Expand Down

0 comments on commit 78e39ce

Please sign in to comment.