Comments (9)
Initial implementation:
>sw -list-programs
List of detected programs:
Microsoft Visual Studio C/C++ Compiler (short form - msvc):
release:
- 19.16.27034
- 19.24.28314
preview:
- 19.24.28314-preview
Clang C/C++ Compiler (short form - clang):
release:
- 10.0.0
Clang C/C++ Compiler in MSVC compatibility mode (short form - clangcl):
release:
- 10.0.0
Use short program form plus version to select it for use.
short-version
Examples: msvc-19.16, msvc-19.24, clang-10
from sw.
Also there's new -list-predefined-targets
option.
>sw -list-predefined-targets
org.LLVM.ar-10.0.0
org.LLVM.clang-10.0.0
org.LLVM.clangcl-10.0.0
org.LLVM.clangpp-10.0.0
org.LLVM.lld-0.0.1
com.intel.compiler.c-19.0.4.245
com.intel.compiler.cpp-19.0.4.245
com.intel.compiler.lib-2019.4.245
com.intel.compiler.link-0.0.1
com.Microsoft.VisualStudio.VC.ATLMFC-15.9.28307.960
com.Microsoft.VisualStudio.VC.ATLMFC-16.5.29521.150-preview
com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27034
com.Microsoft.VisualStudio.VC.ATLMFC-19.24.28314-preview
com.Microsoft.VisualStudio.VC.ATLMFC-19.24.28314
com.Microsoft.VisualStudio.VC.cl-19.16.27034
com.Microsoft.VisualStudio.VC.cl-19.24.28314-preview
com.Microsoft.VisualStudio.VC.cl-19.24.28314
com.Microsoft.VisualStudio.VC.concrt-15.9.28307.960
com.Microsoft.VisualStudio.VC.concrt-16.5.29521.150-preview
com.Microsoft.VisualStudio.VC.concrt-19.16.27034
com.Microsoft.VisualStudio.VC.concrt-19.24.28314-preview
com.Microsoft.VisualStudio.VC.concrt-19.24.28314
com.Microsoft.VisualStudio.VC.lib-19.16.27034
com.Microsoft.VisualStudio.VC.lib-19.24.28314-preview
com.Microsoft.VisualStudio.VC.lib-19.24.28314
com.Microsoft.VisualStudio.VC.libcpp-15.9.28307.960
com.Microsoft.VisualStudio.VC.libcpp-16.5.29521.150-preview
com.Microsoft.VisualStudio.VC.libcpp-19.16.27034
com.Microsoft.VisualStudio.VC.libcpp-19.24.28314-preview
com.Microsoft.VisualStudio.VC.libcpp-19.24.28314
com.Microsoft.VisualStudio.VC.link-19.16.27034
com.Microsoft.VisualStudio.VC.link-19.24.28314-preview
com.Microsoft.VisualStudio.VC.link-19.24.28314
com.Microsoft.VisualStudio.VC.ml-19.16.27034
com.Microsoft.VisualStudio.VC.ml-19.24.28314-preview
com.Microsoft.VisualStudio.VC.ml-19.24.28314
com.Microsoft.VisualStudio.VC.runtime-15.9.28307.960
com.Microsoft.VisualStudio.VC.runtime-16.5.29521.150-preview
com.Microsoft.VisualStudio.VC.runtime-19.16.27034
com.Microsoft.VisualStudio.VC.runtime-19.24.28314-preview
com.Microsoft.VisualStudio.VC.runtime-19.24.28314
com.Microsoft.Windows.rc-6.3.9600.17336
com.Microsoft.Windows.rc-10.0.10011.16384
com.Microsoft.Windows.SDK.ucrt-10.0.10240.0
com.Microsoft.Windows.SDK.ucrt-10.0.17763.0
com.Microsoft.Windows.SDK.ucrt-10.0.18362.0
com.Microsoft.Windows.SDK.um-8.1.0
com.Microsoft.Windows.SDK.um-10.0.10240.0
com.Microsoft.Windows.SDK.um-10.0.17763.0
com.Microsoft.Windows.SDK.um-10.0.18362.0
com.Microsoft.Windows.SDK.winrt-10.0.10240.0
com.Microsoft.Windows.SDK.winrt-10.0.17763.0
com.Microsoft.Windows.SDK.winrt-10.0.18362.0
from sw.
Update sw and try. Later we could improve output.
from sw.
Thank you!
Do you display the one that SW uses by default? It could be interesting to know.
from sw.
Oh, I did not mark it, by default it uses the latest version.
from sw.
Ok but how does it choose between msvc
and clang
, for instance?
from sw.
There's priority: msvc->clang->...
https://github.com/SoftwareNetwork/sw/blob/master/src/sw/core/sw_context.cpp#L70
from sw.
Oh I have no doubt about it, I'm not really asking the behavior (I can dive in the code if needed).
I just thought it would be more user-friendly to print in the output of the command
from sw.
It's ok for me to make initial implementation of features like this ticket and other your requests. But instead of tuning them precisely, I'd like to focus on more architectural questions to spend time there.
You could try to improve it further.
See changes c5c50cc
from sw.
Related Issues (20)
- Error compiling for iOS arm64 from macOS arm64 HOT 55
- Exception when executing: sw build org.sw.demo.google.tesseract.tesseract HOT 1
- Can't build podofo HOT 2
- i don't know why, HOT 3
- when I run sw build org.sw.demo.googke.tesseract -trace HOT 1
- Trying to Build tesseract - Errors from SW HOT 13
- SW is needed to build SW, server down HOT 1
- "Cannot find compiler" error in leptonica Windows build HOT 6
- No target resolved: pub.egorpugin.primitives.hash-master HOT 26
- ABSL file not found HOT 2
- swgui for Windows deprecated HOT 2
- Unknown CMake command "sw_add_package". HOT 7
- SSL connect error HOT 1
- windows tesseract build error (the error is on the SW side) HOT 2
- Tesseact 5.3.3 build issue HOT 6
- sw stuck while building tesseract HOT 2
- lua not built when adding sol2 dependency HOT 3
- CMake Error for SW: Non-zero exit code HOT 10
- sw setup failed HOT 2
- Leptonica Build error for dynamic Library HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sw.