git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@125473 13f79535-47bb-0310-9956-ffa450edef68
49 lines
1.6 KiB
XML
Executable File
49 lines
1.6 KiB
XML
Executable File
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<faqs title="Frequently Asked Questions">
|
|
|
|
<part id="general">
|
|
<title>General</title>
|
|
|
|
<faq id="cygwin">
|
|
<question>How to run the gcc under cygwin?</question>
|
|
<answer>
|
|
<p>
|
|
Set the following properties in your <code>project.properties</code>:
|
|
</p>
|
|
<source>
|
|
maven.native.include.os=win32
|
|
maven.native.compiler.arg.start=-mno-cygwin
|
|
maven.native.linker.arg.start=-mno-cygwin -Wl,--add-stdcall-alias</source>
|
|
</answer>
|
|
</faq>
|
|
<faq id="msvc">
|
|
<question>How to run cl on Windows?</question>
|
|
<answer>
|
|
<p>
|
|
Set the following properties in your <code>project.properties</code>:
|
|
</p>
|
|
<source>
|
|
maven.native.include.os=win32
|
|
maven.native.compiler.name=msvc</source>
|
|
<p>
|
|
Optionally, you can set the following property if you don't want the
|
|
default argument /MD (or /MDd if in debug mode) to be passed to cl.
|
|
At time of writing, this always gets set by CCTask so even if you
|
|
pass a different argument with maven.native.compiler.arg.start
|
|
property, it won't be unset. You will simply end up with 2
|
|
arguments...
|
|
</p>
|
|
<source>
|
|
maven.native.runtime=static</source>
|
|
<p>
|
|
Other arguments for cl can be passed in by setting the following
|
|
property (with values you *really* want, of course, this is just an
|
|
example). Multiple values are separated by a space.
|
|
</p>
|
|
<source>
|
|
maven.native.compiler.arg.start=/GR /GX</source>
|
|
</answer>
|
|
</faq>
|
|
</part>
|
|
</faqs>
|