Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 4,127 for cCompiler (0.17 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainDiscoveryIntegrationTest.groovy

            executable("build/exe/main/main").exec().out == helloWorldApp.englishOutput
        }
    
        def "does not break when compiler not available and not building"() {
            when:
            buildFile << """
    model {
        toolChains {
            ${toolChain.id} {
                eachPlatform {
                    cCompiler.executable = 'does-not-exist'
                    cppCompiler.executable = 'does-not-exist'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/AbstractNativeBinarySpec.java

                .put("assembler", assembler)
                .put("cCompiler", cCompiler)
                .put("cppCompiler", cppCompiler)
                .put("objcCompiler", objcCompiler)
                .put("objcppCompiler", objcppCompiler)
                .put("rcCompiler", rcCompiler)
                .build();
    
        private PlatformToolProvider toolProvider;
        private Flavor flavor;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/GccPlatformToolProvider.java

                gccMetadata.getComponent().getVersion())
            );
        }
    
        @Override
        protected Compiler<CCompileSpec> createCCompiler() {
            GccCommandLineToolConfigurationInternal cCompilerTool = toolRegistry.getTool(ToolType.C_COMPILER);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/VisualCppPlatformToolProvider.java

        }
    
        @Override
        protected Compiler<CCompileSpec> createCCompiler() {
            CommandLineToolInvocationWorker commandLineTool = tool("C compiler", visualCpp.getCompilerExecutable());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/build.gradle

    // tag::configure-test-binary[]
    model {
        binaries {
            withType(CUnitTestSuiteBinarySpec) {
                lib library: "cunit", linkage: "static"
    
                if (flavor == flavors.failing) {
                    cCompiler.define "PLUS_BROKEN"
                }
            }
        }
    }
    // end::configure-test-binary[]
    // end::complete-example[]
    
    def findCUnitLibForPlatform(Platform platform) {
        if (platform.operatingSystem.windows) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java

            private String cCompiler;
            private String CFlags;
            private String dns;
            private String URL;
            private String a;
            private String b;
    
            @Inject
            public TaskWithJavaBeanCornerCaseProperties(String cCompiler, String CFlags, String dns, String URL, String a, String b) {
                this.cCompiler = cCompiler;
                this.CFlags = CFlags;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 11:41:48 UTC 2022
    - 15.8K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/AbstractGccCompatibleToolChainTest.groovy

            !platformToolChain.available
            getMessage(platformToolChain) == "c compiler not found"
        }
    
        def "is unavailable when no C++ compiler can be found and building C++"() {
            def compilerMissing = Stub(CommandLineToolSearchResult) {
                isAvailable() >> false
                explain(_) >> { DiagnosticsVisitor visitor -> visitor.node("c++ compiler not found") }
            }
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  8. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/nativeplatform/RealWorldNativePluginPerformanceTest.groovy

        }
    
        void changeArgs(File file, String originalContent) {
            file.text = originalContent.
                replaceFirst(~/cCompiler.define "SOMETHING7=0"/, 'cCompiler.define "SOMETHING_NEW=0"').
                replaceFirst(~/cppCompiler.define "SOMETHING7=0"/, 'cppCompiler.define "SOMETHING_NEW=0"')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/CCompilerTest.groovy

    class CCompilerTest extends GccCompatibleNativeCompilerTest {
    
        @Override
        protected NativeCompiler getCompiler(CommandLineToolContext invocationContext, String objectFileExtension, boolean useCommandFile) {
            new CCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool, invocationContext, objectFileExtension, useCommandFile, workerLeaseService)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/tool-chains/groovy/build.gradle

                    cppCompiler.withArguments { args ->
                        args << "-DFRENCH"
                    }
                }
            }
            clang(Clang) {
                eachPlatform {
                    cCompiler.withArguments { args ->
                        Collections.replaceAll(args, "CUSTOM", "-DFRENCH")
                    }
                    linker.withArguments { args ->
                        args.remove "CUSTOM"
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top