Git Product home page Git Product logo

jetbrains / clion-custom-defined-compiler-examples Goto Github PK

View Code? Open in Web Editor NEW
59.0 8.0 13.0 845 KB

Set of examples how to use CLion with various unsupported compilers using Custom Defined Compiler feature

Home Page: https://blog.jetbrains.com/clion/2021/10/clion-2021-3-eap-custom-compiler/

License: Apache License 2.0

CMake 0.13% C 99.45% C++ 0.02% Assembly 0.31% Python 0.08% Makefile 0.02% Batchfile 0.01%
clion cmake cpp c embarcadero msp430 ti-msp430 embedded hacktoberfest

clion-custom-defined-compiler-examples's Introduction

CLion Custom Compiler Examples

official JetBrains project

This repository contains:

Disclaimer

All the repository content is provided on an "AS IS" basis, without warranties or conditions of any kind.

Contributors must have permission to contribute config files, either by ensuring that config files are open source or suitably licensed.

Please note that JetBrains does not provide the described compilers or required licenses. The use of third-party compilers in CLion is subject to the licensing policies of their vendors. All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this repository are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.

Documentation

Supported variants so far

clion-custom-defined-compiler-examples's People

Contributors

chemandante avatar claunia avatar elmot avatar hpfaz avatar jmalak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clion-custom-defined-compiler-examples's Issues

OpenWatcom 32-bit OS/2 target

compilers:

    - description: OpenWatcom 32-bit OS/2 target
      match-args: "-bt=os2"
      match-compiler-exe: "(.*/)?wcc386(\\.exe)?"
      include-dirs: "${compiler-exe-dir}/../h ${compiler-exe-dir}../h/os2"
      defines-text: "
#define __X86__ 1
#define __386__ 1
#define M_I386 1
#define _M_I386 1
#define _M_IX86 500
#define __OS2__ 1
#define __FLAT__ 1
#define M_386FM 1
#define _M_386FM 1
#define __WATCOMC__ 1280
#define _INTEGRAL_MAX_BITS 64"

OpenWatcom DOS target

compilers:

    - description: OpenWatcom DOS target
      match-args: "-bt=dos"
      match-compiler-exe: "(.*/)?wcc(\\.exe)?"
      include-dirs: "${compiler-exe-dir}/../H"
      defines-text: "
#define __X86__ 1
#define __I86__
#define M_I86
#define _M_I86
#define _M_IX86 0
#define __DOS__
#define _DOS
#define MSDOS
#define __LARGE__
#define M_I86LM
#define _M_I86LM
#define __WATCOMC__ 1280
#define _INTEGRAL_MAX_BITS=64"

Output:

C:\Users\claunia\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-1\213.4928.11\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=C:/WATCOM/binnt64/nmake.exe -DCMAKE_C_COMPILER=C:/WATCOM/binnt64/wcc.exe -DCMAKE_CXX_COMPILER=C:/WATCOM/binnt64/wcc.exe -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=DOS C:\Users\claunia\Development\Aaru\fstester\setter
CMake Deprecation Warning at CMakeLists.txt:25 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


Detected system name: DOS
Detected system processor: 
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/claunia/Development/Aaru/fstester/setter/cmake-build-release-system

[Finished]

As a first try.

OpenWatcom 32-bit Windows target

compilers:

    - description: OpenWatcom 32-bit Windows target
      match-args: "-bt=nt"
      match-compiler-exe: "(.*/)?wcc386(\\.exe)?"
      include-dirs: "${compiler-exe-dir}/../h ${compiler-exe-dir}../h/nt"
      defines-text: "
#define __X86__ 1
#define __386__ 1
#define M_I386 1
#define _M_I386 1
#define _M_IX86 500
#define __NT__ 1
#define __WINDOWS_386__ 1
#define __FLAT__ 1
#define M_386FM 1
#define _M_386FM 1
#define __WATCOMC__ 1280
#define _INTEGRAL_MAX_BITS 64"

OpenWatcom NetWare target

compilers:

    - description: OpenWatcom NetWare target
      match-args: "-bt=netware"
      match-compiler-exe: "(.*/)?wcc386(\\.exe)?"
      include-dirs: "${compiler-exe-dir}/../novh"
      defines-text: "
#define __X86__ 1
#define __386__ 1
#define M_I386 1
#define _M_I386 1
#define _M_IX86 500 1
#define __NETWARE__ 1
#define __NETWARE_386__ 1
#define __FLAT__ 1
#define M_386FM 1
#define _M_386FM 1
#define __WATCOMC__ 1280
#define _INTEGRAL_MAX_BITS 64"

OpenWatcom 16-bit OS/2 target

compilers:

    - description: OpenWatcom 16-bit OS/2 target
      match-args: "-bt=os2"
      match-compiler-exe: "(.*/)?wcc(\\.exe)?"
      include-dirs: "${compiler-exe-dir}/../h ${compiler-exe-dir}../h/os21x"
      defines-text: "
#define __X86__ 1
#define __I86__ 1
#define M_I86 1
#define _M_I86 1
#define _M_IX86 0
#define __OS2__ 1
#define __LARGE__ 1
#define M_I86LM 1
#define _M_I86LM 1
#define __WATCOMC__ 1280
#define _INTEGRAL_MAX_BITS 64"

GCC and Clang examples

Would it be possible to also include examples for GCC and Clang e.g. for cross-compiling, e.g. arm-none-eabi-gcc?

Thanks.

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.