(self, options: 'KeyedOptionDictType')
return OptionOverrideProxy(overrides, host_options)
Convert an NVCC Option set to a host compiler's option set.
Convert an NVCC Option set to a host compiler's option set.
Convert an NVCC Option set to a host compiler s option set .
def _to_host_compiler_options(self, options: 'KeyedOptionDictType') -> 'KeyedOptionDictType':
        """
        Convert an NVCC Option set to a host compiler's option set.
        """

        # We must strip the -std option from the host compiler option set, as NVCC has
        # its own -std flag that may not agree with the host compiler's.
        host_options = {key: options.get(key, opt) for key, opt in self.host_compiler.get_options().items()}
        std_key = OptionKey('std', machine=self.for_machine, lang=self.host_compiler.language)
        overrides = {std_key: 'none'}
        return OptionOverrideProxy(overrides, host_options)
def _to_host_compiler_options ( self , options : 'KeyedOptionDictType' ) -> 'KeyedOptionDictType' : # We must strip the -std option from the host compiler option set, as NVCC has # its own -std flag that may not agree with the host compiler's. host_options = { key : options . get ( key , opt ) for key , opt in self . host_compiler . get_options ( ) . items ( ) } std_key = OptionKey ( 'std' , machine = self . for_machine , lang = self . host_compiler . language ) overrides = { std_key : 'none' } return OptionOverrideProxy ( overrides , host_options )