1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

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>
This commit is contained in:
Simon Marchi 2015-04-22 17:48:59 -04:00
parent 36f66d36b2
commit a2160bd5f1
2 changed files with 41 additions and 2 deletions

View file

@ -162,6 +162,9 @@ Option.Posix.Ansi=Support ANSI programs (-ansi)
Option.PIC=Position Independent Code (-fPIC)
Option.codecov=Generate gcov information (-ftest-coverage -fprofile-arcs)
Option.codecovTip="Check this flag if you want to enable Profile Code Coverage in your application. Remember to enable this option in both the Compiler-&gt; Miscellaneous and Linker -&gt; General. Then rebuild your project and run Code Coverage again."
Option.Pthread=Support for pthread (-pthread)
Option.PthreadCompilerTip="If you select this option, you probably want to select -pthread in the linker settings."
Option.PthreadLinkerTip="If you select this option, you probably want to select -pthread in the compiler settings."
Option.Posix.Linker.NoStartFiles=Do not use standard start files (-nostartfiles)
Option.Posix.Linker.NoDefLibs=Do not use default libraries (-nodefaultlibs)

View file

@ -1840,15 +1840,42 @@
</tool>
<tool
id="cdt.managedbuild.tool.gnu.cpp.compiler.base"
superClass="cdt.managedbuild.tool.gnu.cpp.compiler">
superClass="cdt.managedbuild.tool.gnu.cpp.compiler">
<option
category="gnu.cpp.compiler.category.other"
command="-pthread"
defaultValue="false"
id="cdt.managedbuild.tool.gnu.cpp.pthread"
name="%Option.Pthread"
tip="%Option.PthreadCompilerTip"
valueType="boolean">
</option>
</tool>
<tool
id="cdt.managedbuild.tool.gnu.c.compiler.base"
superClass="cdt.managedbuild.tool.gnu.c.compiler">
superClass="cdt.managedbuild.tool.gnu.c.compiler">
<option
category="gnu.c.compiler.category.other"
command="-pthread"
defaultValue="false"
id="cdt.managedbuild.tool.gnu.c.pthread"
name="%Option.Pthread"
tip="%Option.PthreadCompilerTip"
valueType="boolean">
</option>
</tool>
<tool
id="cdt.managedbuild.tool.gnu.c.linker.base"
superClass="cdt.managedbuild.tool.gnu.c.linker">
<option
category="gnu.c.link.category.general"
command="-pthread"
defaultValue="false"
id="gnu.c.link.option.pthread"
name="%Option.Pthread"
tip="%Option.PthreadLinkerTip"
valueType="boolean">
</option>
<enablement
type="ALL">
<not>
@ -1861,6 +1888,15 @@
<tool
id="cdt.managedbuild.tool.gnu.cpp.linker.base"
superClass="cdt.managedbuild.tool.gnu.cpp.linker">
<option
category="gnu.cpp.link.category.options"
command="-pthread"
defaultValue="false"
id="cdt.managedbuild.tool.gnu.c.pthread"
name="%Option.Pthread"
tip="%Option.PthreadLinkerTip"
valueType="boolean">
</option>
<enablement
type="ALL">
<not>