|
|
@ -115,6 +115,12 @@ class DCompiler(Compiler): |
|
|
|
for idx, i in enumerate(parameter_list): |
|
|
|
for idx, i in enumerate(parameter_list): |
|
|
|
if i[:3] == '-I=': |
|
|
|
if i[:3] == '-I=': |
|
|
|
parameter_list[idx] = i[:3] + os.path.normpath(os.path.join(build_dir, i[3:])) |
|
|
|
parameter_list[idx] = i[:3] + os.path.normpath(os.path.join(build_dir, i[3:])) |
|
|
|
|
|
|
|
if i[:4] == '-L-L': |
|
|
|
|
|
|
|
parameter_list[idx] = i[:4] + os.path.normpath(os.path.join(build_dir, i[4:])) |
|
|
|
|
|
|
|
if i[:5] == '-L=-L': |
|
|
|
|
|
|
|
parameter_list[idx] = i[:5] + os.path.normpath(os.path.join(build_dir, i[5:])) |
|
|
|
|
|
|
|
if i[:6] == '-Wl,-L': |
|
|
|
|
|
|
|
parameter_list[idx] = i[:6] + os.path.normpath(os.path.join(build_dir, i[6:])) |
|
|
|
|
|
|
|
|
|
|
|
return parameter_list |
|
|
|
return parameter_list |
|
|
|
|
|
|
|
|
|
|
@ -520,7 +526,7 @@ class GnuDCompiler(DCompiler): |
|
|
|
|
|
|
|
|
|
|
|
def compute_parameters_with_absolute_paths(self, parameter_list, build_dir): |
|
|
|
def compute_parameters_with_absolute_paths(self, parameter_list, build_dir): |
|
|
|
for idx, i in enumerate(parameter_list): |
|
|
|
for idx, i in enumerate(parameter_list): |
|
|
|
if i[:2] == '-I': |
|
|
|
if i[:2] == '-I' or i[:2] == '-L': |
|
|
|
parameter_list[idx] = i[:2] + os.path.normpath(os.path.join(build_dir, i[2:])) |
|
|
|
parameter_list[idx] = i[:2] + os.path.normpath(os.path.join(build_dir, i[2:])) |
|
|
|
|
|
|
|
|
|
|
|
return parameter_list |
|
|
|
return parameter_list |
|
|
|