Skip to content

Commit

Permalink
Merge pull request xbmc#6183 from popcornmix/unified_python
Browse files Browse the repository at this point in the history
[build] Fix python when cross compiled with unified build
  • Loading branch information
mkortstiege committed Mar 3, 2015
2 parents 0e24d71 + 980b312 commit d351734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/interfaces/python/XBPython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@ bool XBPython::OnScriptInitialized(ILanguageInvoker *invoker)


// Darwin packs .pyo files, we need PYTHONOPTIMIZE on in order to load them.
#if defined(TARGET_DARWIN)
// linux built with unified builds only packages the pyo files so need it
#if defined(TARGET_DARWIN) || defined(TARGET_LINUX)
setenv("PYTHONOPTIMIZE", "1", 1);
#endif
// Info about interesting python envvars available
Expand Down

0 comments on commit d351734

Please sign in to comment.