Changeset 5d37f0e in rtems-libbsd for waf_generator.py


Ignore:
Timestamp:
Apr 26, 2016, 4:31:38 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
fa69a12
Parents:
7d0050d
Message:

waf: Check for no FreeBSD options being supplied.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_generator.py

    r7d0050d r5d37f0e  
    297297        self.add('    # Defines')
    298298        self.add('    defines = []')
    299         self.add('    for o in bld.env.FREEBSD_OPTIONS.split(","):')
    300         self.add('        defines += ["%s=1" % (o.strip().upper())]')
     299        self.add('    if len(bld.env.FREEBSD_OPTIONS) > 0:')
     300        self.add('        for o in bld.env.FREEBSD_OPTIONS.split(","):')
     301        self.add('            defines += ["%s=1" % (o.strip().upper())]')
    301302        self.add('')
    302303        self.add('    # Include paths')
Note: See TracChangeset for help on using the changeset viewer.