From efc767061304a0bad93941ec6bd5d952cec4a7de Mon Sep 17 00:00:00 2001 From: William Deegan Date: Mon, 15 Jun 2020 15:35:04 -0700 Subject: update to fix Issue #3694 properly handle source and output file names with variant dirs --- SCons/Tool/compilation_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCons/Tool/compilation_db.py b/SCons/Tool/compilation_db.py index c5b839b..b610574 100644 --- a/SCons/Tool/compilation_db.py +++ b/SCons/Tool/compilation_db.py @@ -142,10 +142,10 @@ def write_compilation_db(target, source, env): output_file = entry['output'] if use_abspath: - source_file = source_file.abspath + source_file = source_file.srcnode().abspath output_file = output_file.abspath else: - source_file = source_file.path + source_file = source_file.srcnode().path output_file = output_file.path path_entry = {'directory': entry['directory'], -- cgit v0.12