waf: use os.path.join() for joining paths

Use platform-neutral way in python to join path components to improve
readability. Both will work when passing down to waf's Node object, even
on Windows.
This commit is contained in:
Lucas De Marchi 2016-01-17 16:57:31 -02:00
parent c13cf70163
commit eb6c89d09c

View File

@ -3,6 +3,7 @@
from __future__ import print_function
from waflib import Logs, Options, Utils
import os.path
SOURCE_EXTS = [
'*.S',
@ -93,7 +94,7 @@ def program(bld, blddestdir='bin',
kw['features'] = common_features(bld) + kw.get('features', [])
target = blddestdir + '/' + program_name
target = os.path.join(blddestdir, program_name)
bld.program(
target=target,