diff options
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r-- | src/engine/SCons/Environment.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index 8f76d55..caa3b85 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -763,11 +763,20 @@ class Base: elif arg[0] != '-': dict['LIBS'].append(fs.File(arg)) elif arg[:2] == '-L': - dict['LIBPATH'].append(arg[2:]) + if arg[2:]: + dict['LIBPATH'].append(arg[2:]) + else: + append_next_arg_to = 'LIBPATH' elif arg[:2] == '-l': - dict['LIBS'].append(arg[2:]) + if arg[2:]: + dict['LIBS'].append(arg[2:]) + else: + append_next_arg_to = 'LIBS' elif arg[:2] == '-I': - dict['CPPPATH'].append(arg[2:]) + if arg[2:]: + dict['CPPPATH'].append(arg[2:]) + else: + append_next_arg_to = 'CPPPATH' elif arg[:4] == '-Wa,': dict['ASFLAGS'].append(arg) elif arg[:4] == '-Wl,': |