Author Topic: Compiler Plugin: Plan to add compiler for MSys2?  (Read 8916 times)

Offline AfjalKhan

  • Single posting newcomer
  • *
  • Posts: 1
Compiler Plugin: Plan to add compiler for MSys2?
« on: May 16, 2020, 02:08:50 pm »
I am planning to add a Compiler toolchain settings for the MSys2's GCC Compiler.

The planned name is "msys2-gcc". This is one of the things that will be hard to changed; so, I need to confirm the name is OK?
The planned title is "MSys2 GCC".

I plan to add an variable expansion of "$(TARGET_COMPILER_PREFIX)". Mobdro Kodi bluehost

I, also, plan to add variable expansion of "$(TARGET_WORKING_DIR)".

Both of the above variable expansions are going to use forward slashes instead of backslashes.

On my computer, "$(TARGET_COMPILER_DIR)" is "C:\Apps32\MSys2\mingw32\".
While the "$(TARGET_COMPILER_PREFIX)" will be "C:/Apps32/MSys2/mingw32". Notice the last slash is missing.

« Last Edit: May 19, 2020, 07:23:04 am by AfjalKhan »

Offline gd_on

  • Lives here!
  • ****
  • Posts: 782
Re: Compiler Plugin: Plan to add compiler for MSys2?
« Reply #1 on: May 16, 2020, 04:06:10 pm »
I use myself msys2 without any problems.
It is installed in C:\msys64 (a standard path).
The 64 bit compiler itself is in C:\msys64\mingw64, which is the base path for my "GNU GCC Compiler_64_Msys2", built from a duplicate of the standard configuration of "GNU GCC Compiler" but with paths and debugger adapted.
With such configuration, I can use from C:\msys64 the msys2.exe console and use the command "pacman -Syu" to update the compiler tool chain. It's now in 9.3 version.
Until now, it works well.
Apparently, it's also possible to install a 32 bit version of gcc and also clang in 32 and 64 bit. Each compiler is located in it's own directory, so you should be able to choose which one you want to use.


Windows 10 64 bits (22H2), svn C::B (last version or almost!), wxWidgets 3.2.1, Msys2 Compilers 12.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Compiler Plugin: Plan to add compiler for MSys2?
« Reply #2 on: May 16, 2020, 06:00:52 pm »
I don't like this TARGET_COMPILER_PREFIX. Why do you need it?
Also I don't think we need separate compiler definition for this version of GCC.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]