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:
parent
c13cf70163
commit
eb6c89d09c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user