@@ -42,7 +42,6 @@ def CalculateVariables(default_variables, params):
42
42
43
43
44
44
def AddCommandsForTarget (cwd , target , params , per_config_commands ):
45
- output_dir = params ["generator_flags" ].get ("output_dir" , "out" )
46
45
for configuration_name , configuration in target ["configurations" ].items ():
47
46
if IsMac (params ):
48
47
xcode_settings = gyp .xcode_emulation .XcodeSettings (target )
@@ -93,7 +92,7 @@ def resolve(filename):
93
92
gyp .common .EncodePOSIXShellArgument (file ),
94
93
)
95
94
)
96
- commands .append (dict (command = command , directory = output_dir , file = file ))
95
+ commands .append (dict (command = command , file = file ))
97
96
98
97
99
98
def GenerateOutput (target_list , target_dicts , data , params ):
@@ -108,7 +107,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
108
107
cwd = os .path .dirname (build_file )
109
108
AddCommandsForTarget (cwd , target , params , per_config_commands )
110
109
111
- output_dir = params ["generator_flags " ].get ( "output_dir" , "out" )
110
+ output_dir = params ["options " ].generator_output
112
111
for configuration_name , commands in per_config_commands .items ():
113
112
filename = os .path .join (output_dir , configuration_name , "compile_commands.json" )
114
113
gyp .common .EnsureDirExists (filename )
0 commit comments