Skip to content

Commit

Permalink
SCons: Reduce spam from x11:can_build
Browse files Browse the repository at this point in the history
When cross-compiling for non-X11 on Linux, it used to be quite spammy.
Now it will only print errors if you miss more than just pkg-config and x11.
  • Loading branch information
akien-mga committed Mar 2, 2019
1 parent e930fb9 commit c77c4ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions platform/x11/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ def can_build():
# Check the minimal dependencies
x11_error = os.system("pkg-config --version > /dev/null")
if (x11_error):
print("pkg-config not found.. x11 disabled.")
return False

x11_error = os.system("pkg-config x11 --modversion > /dev/null ")
if (x11_error):
print("X11 not found.. x11 disabled.")
return False

x11_error = os.system("pkg-config xcursor --modversion > /dev/null ")
Expand Down

0 comments on commit c77c4ef

Please sign in to comment.