4395289966d6ec4a9525367c82629c35fb461b2a,tests/python/pants_test/backend/native/tasks/test_cpp_compile.py,CppCompileTest,test_target_level_toolchain_variant_llvm,#CppCompileTest#,64

Before Change


      toolchain_variant=ToolchainVariant.llvm,
    )

    task = self.create_task(self.context(target_roots=[cpp_lib_target]))
    compiler = task.get_compiler(cpp_lib_target)
    // TODO(/񴛂): test specifically which compiler is selected, traversing the PATH if necessary.
    self.assertIn("llvm", compiler.path_entries[0])

After Change


    self.set_options_for_scope("native-build-step", toolchain_variant=RankedValue(
      rank=RankedValue.CONFIG,
      value=ToolchainVariant.gnu))
    self._assert_compiler_toolchain_variant("gcc", no_toolchain_variant_target)

    // Test that a target-level toolchain_variant overrides a config.
    cpp_lib_target = self.make_target(
      "//:cpp_library",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 4395289966d6ec4a9525367c82629c35fb461b2a
Time: 2019-04-24
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/backend/native/tasks/test_cpp_compile.py
Class Name: CppCompileTest
Method Name: test_target_level_toolchain_variant_llvm


Project Name: pantsbuild/pants
Commit Name: aa1d24f06e0a9ed0b6e3e5bd0a27b8d469462589
Time: 2020-07-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/source/source_root_test.py
Class Name: AllRootsTest
Method Name: test_all_roots_with_root_at_buildroot


Project Name: pantsbuild/pants
Commit Name: aa1d24f06e0a9ed0b6e3e5bd0a27b8d469462589
Time: 2020-07-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/source/source_root_test.py
Class Name: AllRootsTest
Method Name: test_all_roots