1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00
Commit graph

80 commits

Author SHA1 Message Date
Jonah Graham
b8bd15844b Bug 571722: Add ALL_FLAGS for scanner discovery
This change adds the ALL_FLAGS that does not limit tool options to
those declared as IOption::isForScannerDiscovery when launching the
compiler to discover compiler built-ins.

This is needed as many other flags, either entered manually in "Other
flags" or some of the existing flags with checkboxes such as "-ansi",
"-fPIC", and "-fstack-protector-all" which all affect scanner discovery
as they can all change what macros are built-in to the compiler.

The current solution has as a drawback that some settings, like -I and -D
then appear twice. For example in the "Includes" node in the "Project
Explorer"

My only reservation about this change is if there is an option
that can be specified successfully at build time, but when used
at scanner discovery time causes the compiler to fail, or return
incorrect results. Therefore I have added a new field,
excludeFromScannerDiscovery to tool options (buildDefinitions
extension point) that allows tool integrators to always exclude
a command line option from ALL_FLAGS. I have also added
a new "Other flags (excluded from discovery)" to the
"Miscellaneous" tab to allow compiler options to be entered
by the user.
2022-11-21 10:46:49 -05:00
John Dallaway
7357cfd9eb Bug 577263: Eliminate unnecessary command line pattern attributes
We eliminate unnecessary command line pattern attributes that were
overriding the default pattern provided by
org.eclipse.cdt.managedbuilder.internal.core.Tool which now includes
${EXTRA_FLAGS}.

Change-Id: I8c4e8e613599e71e31e390f56319bacfd0329ab2
2022-05-05 11:13:28 +01:00
Jonah Graham
8d173637f7 Bug 505882: Fork the GnuMakefileGenerator into non-API
The GnuMakefileGenerator is a huge file that needs lots of fixes.
However most of the time to implement the fixes are taken up trying
to not break API. Most extenders of CDT provide their own
implementation of GnuMakefileGenerator by copying the CDT one
and modifying it. Therefore CDT is going to take that same
approach internally and leave the existing GnuMakefileGenerator
in its unmodifiable state.

Change-Id: I12fafb5e347112648a02d4593267bd88a47b5c88
2021-10-18 15:30:08 -04:00
Jonah Graham
3f472a917b Bug 574448: Fix spelling of GCC -fsanitize command line options
Change-Id: I9d02cc9937dc88ca3b180bb194edd80a6c904899
2021-06-24 14:29:29 -04:00
Marco Stornelli
aa08b85b6f Bug 266305 - Add common warning options to GCC(Clang
Add common warning options usually not included in -Wall. (GCC/Clang)
Added hardening options and address randomization under misc
section (GCC)
Added sanitize options under debug section. (GCC/Clang)

Change-Id: I885d8f49192018e50fcc5d28ee5e60d8785aa947
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-02 11:55:20 +01:00
Marco Stornelli
e6b712325c Bug 527143 - C++ dialect refactor
Renamed c++0x to c++11, c++1y to c++14. Added c++17 and c++20
aka c++2a.

Change-Id: I3939cb56bf887e193bffe7484c6568cf45bd315d
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-12-31 09:10:32 -05:00
Jonah Graham
2cbf927a36 Bug 550076 - Use PE64 parser by default
Change-Id: I757c8ace43e79f1215ad0e817430e5ab90415401
2019-09-09 15:56:07 -04:00
cartu38 opendev
b222d73001 Bug 529448 : Allows build debug level setting to be restored to proper
value

Change-Id: I64182e241e91007fb1c1570c6c0b5231632533d4
Signed-off-by: cartu38 opendev <cartu38.opendev@gmail.com>
2018-01-15 06:07:36 -05:00
Simon Marchi
c59a4c4d7c Bug 513860 - build: Change id of pthread option
There is a collision in the ids of the pthread options,
"cdt.managedbuild.tool.gnu.c.pthread" is there twice.  Change the ids to
be more in line with the other options.

Change-Id: Ice9d003b82b3740df6420811e90a2b157375c243
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-19 19:15:02 -04:00
Simon Marchi
a2160bd5f1 Bug 464916 - Add a -pthread checkbox in the GCC C/C++ Linker settings
Change-Id: Ib06482847e88a327b3e3dccf1522d5f8dab1a72b
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-17 16:00:29 -04:00
Marc-Andre Laperle
4303bc5cbb Bug 481621 - Linux GCC toolchain should use Gnu Elf binary parser by default
-Projects with default settings for binary parser will see their binary parser
changed to Gnu Elf automatically.
-New projects will have Gnu Elf binary parser enabled.
-Projects overriding the settings will not change

Change-Id: Ie5db969e68da20d16f565923ecb0ec1edf8b79f3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-09 13:07:58 -05:00
Simon Marchi
d23b3871ff Bug 465461 - Merge "Symbols" and "Preprocessor" in GCC C compiler settings
...so that it matches the way the GCC C++ compiler is.

Change-Id: I9e32dc3888cfec2c0c01196f44f2e730e2bbc574
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-09-22 10:01:08 -04:00
Leo Ufimtsev
29b783155f Bug 408545 - Added single checkbox to enable gcov. (edit commit msg)
I added a checkbox to enable gCov via a single checkbox to 
        enable gcov in the compiler. It then uses the 
	applicability calculator to automatically enable the linker if
	the compiler option is set.

Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Change-Id: I561d7263d578a7807e890fce5518e6fc2ebb2bb2
Reviewed-on: https://git.eclipse.org/r/29403
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-15 16:48:21 -04:00
Lukas Felber
2e4760ee38 added missing gnu file types (as defined in
http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Overall-Options.html#index-file-name-suffix-71)

Change-Id: If0903113d74439a9bf96022e1e3c636a0ffaebbf
Signed-off-by: Lukas Felber <l.felber@gmx.ch>
Reviewed-on: https://git.eclipse.org/r/24846
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-09 12:28:11 -04:00
Andrew Gvozdev
6856d55b68 bug 416628: "Export" of entries of language settings providers to referencing projects - added provider to do that 2013-09-08 08:09:33 -04:00
Andrew Gvozdev
e84409b1f0 bug 404913: Dialect category and options for language standards for GCC toolchain 2013-07-24 14:50:45 -04:00
Andrew Gvozdev
2df46fd99f bug 382422: [sd90] Add MinGW specs detector 2012-06-12 15:56:11 -04:00
Andrew Gvozdev
af227ede75 Merge remote-tracking branch 'cdt/master' into sd90 2012-05-07 01:12:34 -04:00
Andrew Gvozdev
77442617cc bug 378589: [sd90] Scanner Discovery doesn't run on certain toolchains 2012-05-07 01:07:21 -04:00
Andrew Gvozdev
2949c7da2f Clean up 2012-05-04 20:00:50 -04:00
Andrew Gvozdev
d2c19fcd47 bug 376592: [sd90] Extend BuildDefinitions to allow defining language settings providers 2012-05-04 18:35:17 -04:00
Andrew Gvozdev
cddee53cf1 Moved build-specific classes to managedbuilder (Warning: Incompatible
changes for existing workspaces)
2012-04-03 00:38:05 -04:00
Andrew Gvozdev
cfa3895aa3 Renamed providers IDs (Warning: Incompatible changes for existing
workspaces)
2012-01-24 13:41:28 -05:00
Andrew Gvozdev
23b841b96c Merge remote-tracking branch 'cdt/master' into sd90 2012-01-03 17:57:57 -05:00
Sergey Prigogin
dd2d478fc1 Bug 365461: Requesting -Wextra and -Wconversion warnings flags for gcc
c/c++
2011-12-23 14:39:26 -05:00
Andrew Gvozdev
c9b2608713 Use "shared" attribute from LanguageSettingsProviderAssociation
extension rather than star "*" in toolchain definition.
2011-12-08 12:23:29 -05:00
Alena Laskavaia
fc919d81b6 Bug 210248 - [Internal Builder]does not rebuild a dependent project in
case of a reference library project change - fixed external builder
2011-11-22 19:34:55 -05:00
Christian W. Damus
a3dd98987a Bug 210248 - [Internal Builder]does not rebuild a dependent project in
case of a reference library project change

Conflicts:
	build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/AdditionalInput.java
2011-11-21 21:56:38 -05:00
Andrew Gvozdev
00302deed6 Better legacy and compatibility support 2011-09-06 11:26:09 -04:00
Andrew Gvozdev
7d021ea6c4 Merge branch 'master' into sd90 2011-07-07 13:04:23 -04:00
Andrew Gvozdev
fbc67e72a2 Initial commit of new Scanner Discovery for CDT - bug 290631.
See prior history on GitHub https://github.com/angvoz/SD80/, branch sd80
2011-07-07 12:29:41 -04:00
Marc-Andre Laperle
30a6e551f5 Bug 350363 - Include Files tab doesn't offer the language GNU C++ 2011-06-25 19:57:25 -04:00
Andrew Gvozdev
2031a8ee15 bug 256763: -fPIC parameter for GCC compilers
Based on patch from Andrey Tretyakov
2010-11-04 21:39:11 +00:00
Andrew Gvozdev
cc39535a4b bug 311429: Inconsistent showing of "Languages" in Paths&Symbols tab 2010-10-18 04:10:36 +00:00
James Blackburn
f6da41c466 Bug 115601 Add -include option to built-in MBS GNU toolchain. Add Paths & Symbols property page for editing paths of kind ICSettingEntry#INCLUDE_FILE (hidden by default) 2010-04-28 13:23:39 +00:00
James Blackburn
3a2a4efa4f Bug220990 Add -Os optimize for size to GNU C & CPP toolchain 2010-02-03 10:36:47 +00:00
Vivian Kong
6d906f69c5 externalize strings in plugin.xml in various plugins 2010-02-01 16:23:38 +00:00
Andrew Gvozdev
f7abbce100 bug 296904: Split MakeErrorParser to regex style GmakeErrorParser and CWDLocator 2010-01-29 06:34:42 +00:00
Andrew Gvozdev
595fb79ac6 bug 270790: Mach-O Parser doesn't recognize x86_64 binaries
Patch from Marc-Andre Laperle. Based on work of Alfons Laarman and Sal Scotto.
2009-11-04 15:20:13 +00:00
Andrew Gvozdev
3cb3c4832b bug 196561: [managedbuilder.gnu] Order of debugging options in settings differs for C and C++
Patch from Daniel Weber
2009-08-14 14:15:29 +00:00
Alena Laskavaia
12a2cb30e8 [268528] Discovery profile options panel doesn't show since 5.0.2 up 2009-03-17 18:05:37 +00:00
Alena Laskavaia
8dd5c4c602 [264010] - patch to fix discovery profile for mingw 2009-02-10 18:47:05 +00:00
Alena Laskavaia
81d07380ea [255157] typo in template id 2008-11-19 15:51:36 +00:00
Alena Laskavaia
2654d40bea [251124] - applied patch, fixing unfinished code that allow language separation for templates 2008-10-17 15:05:54 +00:00
Chris Recoskie
91141bd408 RESOLVED - bug 234860: New Project Wizard using "folders" for project type selection is totally unintuitive
https://bugs.eclipse.org/bugs/show_bug.cgi?id=234860
2008-09-11 15:48:14 +00:00
Vivian Kong
2942d637ad externalize Gnu Make Builder's name (bug 227369) 2008-04-16 16:03:39 +00:00
Oleg Krasilnikov
aaedfd3400 Bug # 220749 : Performance switches -p -pg should be propagated to linker too 2008-02-28 17:17:38 +00:00
Doug Schaefer
f6ea2409a4 Bug 194641 - reattach the isToolchainSupported to the cygwin toolchain. Also created one for mingw.
Bug 201579 - added the msys directory to the mingw toolchain path if it resides next to the mingw in the eclipse install location's parent.
2007-08-31 19:27:59 +00:00
Vivian Kong
f0b7ccf674 fix for bug 184452 - get template files using FileLocator.find() so translated template files will get picked up 2007-06-07 14:06:30 +00:00
Doug Schaefer
eca6010779 Created a much simpler Gnu Makefile project template. 2007-05-24 19:54:39 +00:00