diff options
author | Chris Johns <chrisj@rtems.org> | 2016-04-26 14:31:38 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-04-26 14:31:38 +1000 |
commit | 5d37f0ea660c6db37ac6fb670ba6b2c384107e4c (patch) | |
tree | a362847305cbb5d688a344811ec5edbf1427d685 /libbsd_waf.py | |
parent | Fix fp initializaiton in kern_sendit() (diff) | |
download | rtems-libbsd-5d37f0ea660c6db37ac6fb670ba6b2c384107e4c.tar.bz2 |
waf: Check for no FreeBSD options being supplied.
Diffstat (limited to 'libbsd_waf.py')
-rw-r--r-- | libbsd_waf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbsd_waf.py b/libbsd_waf.py index 689a72c3..c99ef935 100644 --- a/libbsd_waf.py +++ b/libbsd_waf.py @@ -41,8 +41,9 @@ def build(bld): # Defines defines = [] - for o in bld.env.FREEBSD_OPTIONS.split(","): - defines += ["%s=1" % (o.strip().upper())] + if len(bld.env.FREEBSD_OPTIONS) > 0: + for o in bld.env.FREEBSD_OPTIONS.split(","): + defines += ["%s=1" % (o.strip().upper())] # Include paths includes = [] |