How do I determine which compiler(s) is/are being used when building as well as their version and the flags being used with them. I realize that there are flags specified in the Makefile, but I'm guessing that perhaps there are other flags being specified as well that I'm not finding.
Thanks,
John
Compiler and version being used
- Giovanni
- Site Admin
- Posts: 14779
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1174 times
- Been thanked: 976 times
Re: Compiler and version being used
Hi,
Makefiles include a common file called rules.mk, all options are handled there. When you compile all used options appear in the 1st line of the compile log.
Giovanni
Makefiles include a common file called rules.mk, all options are handled there. When you compile all used options appear in the 1st line of the compile log.
Giovanni
- Giovanni
- Site Admin
- Posts: 14779
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1174 times
- Been thanked: 976 times
Re: Compiler and version being used
It is the console output compiling any demo with "make".
Giovanni
Giovanni
- Giovanni
- Site Admin
- Posts: 14779
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1174 times
- Been thanked: 976 times
Re: Compiler and version being used
Makefiles use the compiler found in paths, to see the version run: arm-none-eabi-gcc --version
Giovanni
Giovanni
Re: Compiler and version being used
Please forgive me for asking all these questions. When you say paths, what paths do you mean? I'm pretty sure you don't mean the environment variable $PATH. But I also don't see any variable called paths in the Makefile or rules.mk.
Thanks,
John
Thanks,
John
- Giovanni
- Site Admin
- Posts: 14779
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1174 times
- Been thanked: 976 times
Re: Compiler and version being used
I meant the environment variable PATH, makefiles just use the 1st compiler found named as arm-none-eabi-*, there is no compiler selection from within makefiles nor explicit compiler paths.
Open a terminal, give the command "arm-none-eabi-gcc --version", that is the compiler that will be used.
Giovanni
Open a terminal, give the command "arm-none-eabi-gcc --version", that is the compiler that will be used.
Giovanni
Who is online
Users browsing this forum: No registered users and 27 guests
