

def generate_basic_compiler_args(self, target, compiler):
    commands = []
    commands += compiler.get_always_args()
    commands += priv_dir.get_warn_args(self.environment.coredata.get_builtin_option('warning_level'))
    commands += compiler.get_option_compile_args(self.environment.coredata.compiler_options)
    commands += self.build.get_global_args(compiler)
    commands += self.environment.coredata.external_args[compiler.get_language()]
    commands += target.get_extra_args(compiler.get_language())
    commands += compiler.get_buildtype_args(self.environment.coredata.get_builtin_option('buildtype'))
    if self.environment.coredata.get_builtin_option('werror'):
        commands += compiler.get_werror_args()
    if isinstance(target, build.SharedLibrary):
        commands += compiler.get_pic_args()
    for dep in target.get_external_deps():
        commands += compiler.unix_compile_flags_to_native(dep.get_compile_args())
        if isinstance(target, build.Executable):
            commands += dep.get_exe_args()
    if (compiler.language == 'fortran'):
        for lt in target.link_targets:
            priv_dir = os.path.join(self.get_target_dir(lt), (lt.get_basename() + lt.type_suffix()))
            incflag = compiler.get_include_args(priv_dir, False)
            commands += incflag
    return commands

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.generate_basic_compiler_args/VarMisuse@29/35 `compiler`->`priv_dir`