<commit_before>import qbs
import qbs.Utilities

Project {
    StaticLibrary {
        name: "staticlib 1"
        Depends { name: "cpp" }
        files: ["unused1.cpp", "used.cpp"]
    }
    StaticLibrary {
        name: "staticlib2"
        Depends { name: "cpp" }
        files: ["unused2.cpp"]
    }
    StaticLibrary {
        name: "staticlib3"
        Depends { name: "cpp" }
        files: ["unused3.cpp"]
    }
    StaticLibrary {
        name: "staticlib4"
        Depends { name: "cpp" }
        files: ["unused4.cpp"]
    }

    DynamicLibrary {
        name: "dynamiclib"
        property string linkWholeArchive
        Depends { name: "cpp" }
        Probe {
            id: dummy
            property string toolchainType: qbs.toolchainType
            property string compilerVersion: cpp.compilerVersion
            property string dummy: product.linkWholeArchive // To force probe re-execution
            configure: {
                if (toolchainType !== "msvc"
                        || Utilities.versionCompare(compilerVersion, "19.0.25123") >= 0) {
                    console.info("can link whole archives");
                } else {
                    console.info("cannot link whole archives");
                }
            }
        }
        Depends { name: "staticlib 1"; cpp.linkWholeArchive: product.linkWholeArchive }
        Depends { name: "staticlib2"; cpp.linkWholeArchive: product.linkWholeArchive }
        Depends { name: "staticlib3" }
        Depends { name: "staticlib4"; cpp.linkWholeArchive: product.linkWholeArchive }
        files: ["dynamiclib.cpp"]
    }

    CppApplication {
        name: "app1"
        Depends { name: "dynamiclib" }
        files: ["main1.cpp"]
    }

    CppApplication {
        name: "app2"
        Depends { name: "dynamiclib" }
        files: ["main2.cpp"]
    }
    CppApplication {
        name: "app3"
        Depends { name: "dynamiclib" }
        files: ["main3.cpp"]
    }
    CppApplication {
        name: "app4"
        Depends { name: "dynamiclib" }
        files: ["main4.cpp"]
    }
}
<commit_msg>Fix wholeArchive() autotest<commit_after>import qbs
import qbs.Utilities

Project {
    StaticLibrary {
        name: "staticlib 1"
        Depends { name: "cpp" }
        files: ["unused1.cpp", "used.cpp"]
    }
    StaticLibrary {
        name: "staticlib2"
        Depends { name: "cpp" }
        files: ["unused2.cpp"]
    }
    StaticLibrary {
        name: "staticlib3"
        Depends { name: "cpp" }
        files: ["unused3.cpp"]
    }
    StaticLibrary {
        name: "staticlib4"
        Depends { name: "cpp" }
        files: ["unused4.cpp"]
    }

    DynamicLibrary {
        name: "dynamiclib"
        property string linkWholeArchive
        Depends { name: "cpp" }
        Probe {
            id: dummy
            property stringList toolchain: qbs.toolchain
            property string compilerVersion: cpp.compilerVersion
            property string dummy: product.linkWholeArchive // To force probe re-execution
            configure: {
                if (!toolchain.contains("msvc")
                        || Utilities.versionCompare(compilerVersion, "19.0.25123") >= 0) {
                    console.info("can link whole archives");
                } else {
                    console.info("cannot link whole archives");
                }
            }
        }
        Depends { name: "staticlib 1"; cpp.linkWholeArchive: product.linkWholeArchive }
        Depends { name: "staticlib2"; cpp.linkWholeArchive: product.linkWholeArchive }
        Depends { name: "staticlib3" }
        Depends { name: "staticlib4"; cpp.linkWholeArchive: product.linkWholeArchive }
        files: ["dynamiclib.cpp"]
    }

    CppApplication {
        name: "app1"
        Depends { name: "dynamiclib" }
        files: ["main1.cpp"]
    }

    CppApplication {
        name: "app2"
        Depends { name: "dynamiclib" }
        files: ["main2.cpp"]
    }
    CppApplication {
        name: "app3"
        Depends { name: "dynamiclib" }
        files: ["main3.cpp"]
    }
    CppApplication {
        name: "app4"
        Depends { name: "dynamiclib" }
        files: ["main4.cpp"]
    }
}

{'fraction_non_alphanumeric': 0.1135005973715651, 'fraction_numerical': 0.013859020310633213, 'mean_word_length': 1.7721854304635762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3225978', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1215, 'n_words': 273}