Coder Social home page Coder Social logo

List available compilers about sw HOT 9 CLOSED

Telokis avatar Telokis commented on July 19, 2024
List available compilers

from sw.

Comments (9)

egorpugin avatar egorpugin commented on July 19, 2024

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.

egorpugin avatar egorpugin commented on July 19, 2024

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.

egorpugin avatar egorpugin commented on July 19, 2024

Update sw and try. Later we could improve output.

from sw.

Telokis avatar Telokis commented on July 19, 2024

Thank you!
Do you display the one that SW uses by default? It could be interesting to know.

from sw.

egorpugin avatar egorpugin commented on July 19, 2024

Oh, I did not mark it, by default it uses the latest version.

from sw.

Telokis avatar Telokis commented on July 19, 2024

Ok but how does it choose between msvc and clang, for instance?

from sw.

egorpugin avatar egorpugin commented on July 19, 2024

There's priority: msvc->clang->...
https://github.com/SoftwareNetwork/sw/blob/master/src/sw/core/sw_context.cpp#L70

from sw.

Telokis avatar Telokis commented on July 19, 2024

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.

egorpugin avatar egorpugin commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.