Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 895 for swiftc (0.11 sec)

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

                @Override
                public void execute(BufferedWriter bufferedWriter) {
                    // Rewrite swiftc generated YAML file with our understanding of the current state of
                    // swift sources. This doesn't use Yaml.dump because snakeyaml produces a YAML file
                    // that swiftc cannot read.
                    PrintWriter pw = new PrintWriter(bufferedWriter);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/NativeToolChainTestInterceptor.java

        //
        // Many of our old tests assume that available tool chains can compile many/most languages, so they do not try to
        // restrict the required set of tool chains.
        //
        // The swiftc tool chain can build _only_ Swift, so tests that expect to use the swiftc tool chain properly annotate
        // their requirements with ToolChainRequirement.SWIFTC (or a version-specific requirement).
        //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/metadata/CompilerMetaDataProviderFactory.java

        private final CachingCompilerMetaDataProvider<SwiftcMetadata> swiftc;
    
        public CompilerMetaDataProviderFactory(ExecActionFactory execActionFactory) {
            gcc = new CachingCompilerMetaDataProvider<GccMetadata>(GccMetadataProvider.forGcc(execActionFactory));
            clang = new CachingCompilerMetaDataProvider<GccMetadata>(GccMetadataProvider.forClang(execActionFactory));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/AvailableToolChains.java

            public boolean meets(ToolChainRequirement requirement) {
                switch (requirement) {
                    case SWIFTC:
                        return true;
                    case SWIFTC_3:
                        return getVersion().getMajor() == 3;
                    case SWIFTC_4:
                        return getVersion().getMajor() == 4;
                    case SWIFTC_5:
                        return getVersion().getMajor() == 5;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/SwiftApplicationInitIntegrationTest.groovy

        def "source generation is skipped when swift sources detected with #scriptDsl build scripts"() {
            setup:
            subprojectDir.file("src/main/swift/main.swift") << """
                public func hola() -> String {
                    return "Hola, Mundo!"
                }
    
                print(hola())
            """
            subprojectDir.file("src/test/swift/HolaTests.swift") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/metadata/CompilerMetaDataProviderFactoryTest.groovy

            def newMetadata = metadataProvider(compiler).getCompilerMetaData([]) { it.executable(binary) }
    
            then:
            0 * _
            newMetadata.is(metadata)
    
            where:
            compiler << ['gcc', 'clang', 'swiftc']
        }
    
        def "different #compiler executables are probed and cached"() {
            def firstBinary = new File("first")
            def secondBinary = new File("second")
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/swift/SwiftcToolChain.java

    import java.io.File;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    public class SwiftcToolChain extends ExtendableToolChain<SwiftcPlatformToolChain> implements Swiftc {
        public static final String DEFAULT_NAME = "swiftc";
    
        private final CompilerOutputFileNamingSchemeFactory compilerOutputFileNamingSchemeFactory;
        private final CompilerMetaDataProvider<SwiftcMetadata> compilerMetaDataProvider;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/swift/SwiftPlatformToolProvider.java

            SwiftLinker swiftLinker = new SwiftLinker(buildOperationExecutor, commandLineTool(ToolType.LINKER, "swiftc"), context(linkerTool), workerLeaseService);
            return new VersionAwareCompiler<LinkerSpec>(swiftLinker, new DefaultCompilerVersion("swiftc", swiftcMetaData.getVendor(), swiftcMetaData.getVersion()));
        }
    
        protected Compiler<SwiftCompileSpec> createSwiftCompiler() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/SwiftLibraryInitIntegrationTest.groovy

        def "creates sample source if no source present with #scriptDsl build scripts"() {
            when:
            run('init', '--type', 'swift-library', '--dsl', scriptDsl.id)
    
            then:
            subprojectDir.file("src/main/swift").assertHasDescendants(SAMPLE_LIBRARY_CLASS)
            subprojectDir.file("src/test/swift").assertHasDescendants(SAMPLE_LIBRARY_TEST_CLASS, LINUX_MAIN_DOT_SWIFT)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/plugins/XCTestPluginOnUnsupportedPlatformIntegrationTest.groovy

            when:
            fails "check"
            then:
            failure.assertHasCause("""No tool chain is available to build Swift for host operating system '${osName}' architecture '${archName}':
      - Tool chain 'swiftc' (Swift Compiler):
          - Could not find Swift compiler 'swiftc' in system path.""")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top