|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <?eclipse version="3.4"?> |
| 3 | +<!-- |
| 4 | +Copyright (c) 2010-2025 Nokia Siemens Networks Oyj and others |
| 5 | +This program and the accompanying materials |
| 6 | +are made available under the terms of the Eclipse Public License 2.0 |
| 7 | +which accompanies this distribution, and is available at |
| 8 | +https://www.eclipse.org/legal/epl-2.0/ |
| 9 | +
|
| 10 | +SPDX-License-Identifier: EPL-2.0 |
| 11 | +
|
| 12 | +Contributors: |
| 13 | + Nokia Siemens Networks - initial implementation |
| 14 | + John Dallaway - add option for clang '-emit-llvm' (#1277) |
| 15 | +--> |
3 | 16 | <plugin> |
4 | 17 | <extension |
5 | 18 | id="org.eclipse.cdt.managedbuilder.llvm.ui.buildDefinitions" |
|
210 | 223 | <inputType |
211 | 224 | buildVariable="BCS" |
212 | 225 | dependencyCalculator="org.eclipse.cdt.managedbuilder.llvm.makegen.LlvmDependencyCalculator2" |
213 | | - id="cdt.managedbuild.tool.llvm.c.linker.input" |
| 226 | + id="cdt.managedbuild.tool.llvm.c.linker.input.bc" |
214 | 227 | multipleOfType="true" |
215 | 228 | primaryInput="true" |
216 | 229 | sourceContentType="org.eclipse.cdt.managedbuilder.llvm.ui.llvmBytecode" |
|
224 | 237 | paths="$(LIBS)"> |
225 | 238 | </additionalInput> |
226 | 239 | </inputType> |
| 240 | + <inputType |
| 241 | + buildVariable="OBJS" |
| 242 | + dependencyCalculator="org.eclipse.cdt.managedbuilder.llvm.makegen.LlvmDependencyCalculator2" |
| 243 | + id="cdt.managedbuild.tool.llvm.c.linker.input.obj" |
| 244 | + multipleOfType="true" |
| 245 | + primaryInput="true" |
| 246 | + sourceContentType="org.eclipse.cdt.managedbuilder.core.compiledObjectFile" |
| 247 | + sources="o"> |
| 248 | + </inputType> |
227 | 249 | <outputType |
228 | 250 | buildVariable="LLVM_BC_EXECUTABLES" |
229 | 251 | id="cdt.managedbuild.tool.llvm.c.linker.output.exe.bc" |
|
317 | 339 | <inputType |
318 | 340 | buildVariable="BCS" |
319 | 341 | dependencyCalculator="org.eclipse.cdt.managedbuilder.llvm.makegen.LlvmDependencyCalculator2" |
320 | | - id="cdt.managedbuild.tool.llvm.archiver.input" |
| 342 | + id="cdt.managedbuild.tool.llvm.archiver.input.bc" |
321 | 343 | multipleOfType="true" |
| 344 | + primaryInput="true" |
322 | 345 | sourceContentType="org.eclipse.cdt.managedbuilder.llvm.ui.llvmBytecode" |
323 | 346 | sources="bc"> |
324 | 347 | <additionalInput |
|
330 | 353 | paths="$(LIBS)"> |
331 | 354 | </additionalInput> |
332 | 355 | </inputType> |
| 356 | + <inputType |
| 357 | + buildVariable="OBJS" |
| 358 | + dependencyCalculator="org.eclipse.cdt.managedbuilder.llvm.makegen.LlvmDependencyCalculator2" |
| 359 | + id="cdt.managedbuild.tool.llvm.archiver.input.obj" |
| 360 | + multipleOfType="true" |
| 361 | + primaryInput="true" |
| 362 | + sourceContentType="org.eclipse.cdt.managedbuilder.core.compiledObjectFile" |
| 363 | + sources="o"> |
| 364 | + </inputType> |
333 | 365 | <outputType |
334 | 366 | buildVariable="ARCHIVES" |
335 | 367 | id="cdt.managedbuild.tool.llvm.archiver.output" |
|
814 | 846 | category="llvm.c_cpp.compiler.category.optimization" |
815 | 847 | id="llvm.c_cpp.compiler.option.optimization.flags" |
816 | 848 | name="%Option.Posix.Optimize.Flags" |
817 | | - value="-emit-llvm" |
818 | 849 | valueType="string"> |
819 | 850 | </option> |
| 851 | + <option |
| 852 | + category="llvm.c_cpp.compiler.category.optimization" |
| 853 | + command="-emit-llvm" |
| 854 | + defaultValue="true" |
| 855 | + id="llvm.c_cpp.compiler.option.optimization.emit-llvm" |
| 856 | + name="%Option.Llvm.Clang.EmitLlvm.name" |
| 857 | + tip="%Option.Llvm.Clang.EmitLlvm.tip" |
| 858 | + valueType="boolean"> |
| 859 | + </option> |
820 | 860 | <optionCategory |
821 | 861 | id="llvm.c_cpp.compiler.category.debug" |
822 | 862 | name="%OptionCategory.Debug" |
|
1047 | 1087 | </option> |
1048 | 1088 | <outputType |
1049 | 1089 | buildVariable="BCS" |
1050 | | - id="cdt.managedbuild.tool.llvm.c_cpp.compiler.output" |
| 1090 | + id="cdt.managedbuild.tool.llvm.c_cpp.compiler.output.bc" |
1051 | 1091 | outputs="bc"> |
| 1092 | + <enablement |
| 1093 | + type="ALL"> |
| 1094 | + <checkOption |
| 1095 | + optionId="llvm.c_cpp.compiler.option.optimization.emit-llvm" |
| 1096 | + value="true"> |
| 1097 | + </checkOption> |
| 1098 | + </enablement> |
| 1099 | + </outputType> |
| 1100 | + <outputType |
| 1101 | + buildVariable="OBJS" |
| 1102 | + id="cdt.managedbuild.tool.llvm.c_cpp.compiler.output.obj" |
| 1103 | + outputs="o"> |
| 1104 | + <enablement |
| 1105 | + type="ALL"> |
| 1106 | + <checkOption |
| 1107 | + optionId="llvm.c_cpp.compiler.option.optimization.emit-llvm" |
| 1108 | + value="false"> |
| 1109 | + </checkOption> |
| 1110 | + </enablement> |
1052 | 1111 | </outputType> |
1053 | 1112 | </tool> |
1054 | 1113 | <tool |
|
0 commit comments