[llvm] [Dexter] Set ShouldBuild=false for Visual Studio solutions (PR #75045)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 04:42:45 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Stephen Tozer (SLTozer)
<details>
<summary>Changes</summary>
Since Dexter no longer intends to build any code, the ShouldBuild property in any Visual Studio project being run by Dexter should be false to ensure that a build step is never invoked by Dexter, whether the project has already been built or not.
---
Full diff: https://github.com/llvm/llvm-project/pull/75045.diff
1 Files Affected:
- (modified) cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py (+7)
``````````diff
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py
index 50a97e2b77d15..0e20cfbbd264b 100644
--- a/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py
@@ -276,6 +276,13 @@ def launch(self, cmdline):
project.Properties, "ActiveConfiguration"
).Object
ActiveConfiguration.DebugSettings.CommandArguments = cmdline_str
+ ConfigurationName = ActiveConfiguration.ConfigurationName
+ SolConfig = self._fetch_property(
+ self._interface.Solution.SolutionBuild.SolutionConfigurations,
+ ConfigurationName,
+ )
+ for Context in SolConfig.SolutionContexts:
+ Context.ShouldBuild = False
self.context.logger.note("Launching VS debugger...")
self._fn_go(False)
``````````
</details>
https://github.com/llvm/llvm-project/pull/75045
More information about the llvm-commits
mailing list