Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getForPlatform (0.26 sec)

  1. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/DefaultNativeToolChainRegistry.java

                create(name, registeredDefaults.get(name));
            }
        }
    
        @Override
        public NativeToolChain getForPlatform(NativePlatform targetPlatform) {
            return getForPlatform(NativeLanguage.ANY, (NativePlatformInternal) targetPlatform);
        }
    
        @Override
        public NativeToolChainInternal getForPlatform(NativeLanguage sourceLanguage, NativePlatformInternal targetMachine) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/DefaultNativeToolChainRegistryTest.groovy

            registry.registerDefaultToolChain("test3", TestNativeToolChain)
            registry.addDefaultToolChains()
    
            and:
            def tc = registry.getForPlatform(platform)
            def result = tc.select(platform)
    
            when:
            result.newCompiler(CCompileSpec.class)
    
            then:
            GradleException e = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/main/java/org/gradle/platform/base/ToolChainRegistry.java

     */
    @Incubating
    public interface ToolChainRegistry<P extends Platform, T extends ToolChain> {
        /**
         * Returns the best tool chain to build for the target platform.
         */
        T getForPlatform(P targetPlatform);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1014 bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/NativeToolChainRegistryInternal.java

         */
        void addDefaultToolChains();
    
        /**
         * Selects the tool chain that can build binaries from the given source language that can run on the target machine.
         */
        NativeToolChainInternal getForPlatform(NativeLanguage sourceLanguage, NativePlatformInternal targetMachine);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/configure/NativeBinaryRulesTest.groovy

        def project = Mock(Project)
    
        def toolProvider = Mock(PlatformToolProvider)
        def platform = Mock(NativePlatformInternal)
        def toolChains = Mock(NativeToolChainRegistryInternal) {
            getForPlatform(platform) >> Mock(NativeToolChainInternal) {
                select(platform) >> toolProvider
            }
        }
    
        def setup() {
            project.buildDir >> tmpDir.testDirectory
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/toolchains/DefaultToolChainSelectorTest.groovy

            result.targetPlatform.targetMachine.architecture == machineArchitecture
            result.platformToolProvider == toolProvider
    
            and:
            registry.getForPlatform(NativeLanguage.CPP, _) >> { args ->
                assert args[1].architecture == Architectures.forInput(architecture)
                return toolChain
            }
            toolChain.select(NativeLanguage.CPP, _) >> { args ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/configure/NativeBinaryRules.java

        }
    
        private static NativeToolChainInternal toolChainFor(NativeBinarySpec nativeBinary, NativeToolChainRegistryInternal toolChains) {
            return (NativeToolChainInternal) toolChains.getForPlatform(nativeBinary.getTargetPlatform());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/toolchains/DefaultToolChainSelector.java

            NativeToolChainRegistryInternal registry = modelRegistry.realize("toolChains", NativeToolChainRegistryInternal.class);
            NativeToolChainInternal toolChain = registry.getForPlatform(sourceLanguage, targetNativePlatform);
            toolChain.assertSupported();
    
            return toolChain;
        }
    
        static SwiftVersion toSwiftVersion(VersionNumber swiftCompilerVersion) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_platform_info.cc

          se::PlatformManager::PlatformWithId(platform_info.platform_id());
      if (!platform.ok()) {
        return platform.status();
      }
    
      absl::StatusOr<xla::Compiler*> compiler_for_platform =
          xla::Compiler::GetForPlatform(platform.value());
      if (!compiler_for_platform.ok()) {
        // In some rare cases (usually in unit tests with very small clusters) we
        // may end up transforming an XLA cluster with at least one GPU operation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 17:23:27 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/xctest/plugins/XCTestConventionPlugin.java

                final ModelRegistry modelRegistry = ((ProjectInternal) project).getModelRegistry();
                final NativeToolChain toolChain = modelRegistry.realize("toolChains", NativeToolChainRegistryInternal.class).getForPlatform(currentPlatform);
    
                // Platform specific arguments
                // TODO: Need to lazily configure compile task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.9K bytes
    - Viewed (0)
Back to top