mirror of
https://github.com/claunia/clion-custom-defined-compiler-examples.git
synced 2025-12-16 19:24:48 +00:00
Embarcadero variant
This commit is contained in:
1
CMake-Embarcadero-BCC32C/.gitignore
vendored
Normal file
1
CMake-Embarcadero-BCC32C/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/cmake-build*/
|
||||
6
CMake-Embarcadero-BCC32C/.idea/.gitignore
generated
vendored
Normal file
6
CMake-Embarcadero-BCC32C/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
/deployment.xml
|
||||
2
CMake-Embarcadero-BCC32C/.idea/CMake-Embarcadero-BCC32C.iml
generated
Normal file
2
CMake-Embarcadero-BCC32C/.idea/CMake-Embarcadero-BCC32C.iml
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module classpath="CMake" type="CPP_MODULE" version="4" />
|
||||
7
CMake-Embarcadero-BCC32C/.idea/custom-compiler.xml
generated
Normal file
7
CMake-Embarcadero-BCC32C/.idea/custom-compiler.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="com.jetbrains.cidr.lang.workspace.compiler.custom.CustomCompilerService">
|
||||
<option name="definitionsFile" value="$PROJECT_DIR$/custom-compiler-bcc.yaml" />
|
||||
<option name="enabled" value="true" />
|
||||
</component>
|
||||
</project>
|
||||
88
CMake-Embarcadero-BCC32C/.idea/misc.xml
generated
Normal file
88
CMake-Embarcadero-BCC32C/.idea/misc.xml
generated
Normal file
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||
<component name="MarkdownNavigator.ProfileManager" plain-text-search-scope="Project Files" />
|
||||
<component name="MarkdownProjectSettings" wasCopied="true">
|
||||
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" openRemoteLinks="true" replaceUnicodeEmoji="false" lastLayoutSetsDefault="false">
|
||||
<PanelProvider>
|
||||
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
|
||||
</PanelProvider>
|
||||
</PreviewSettings>
|
||||
<ParserSettings gitHubSyntaxChange="false" emojiShortcuts="1" emojiImages="0">
|
||||
<PegdownExtensions>
|
||||
<option name="ABBREVIATIONS" value="false" />
|
||||
<option name="ANCHORLINKS" value="true" />
|
||||
<option name="ASIDE" value="false" />
|
||||
<option name="ATXHEADERSPACE" value="true" />
|
||||
<option name="AUTOLINKS" value="false" />
|
||||
<option name="DEFINITIONS" value="false" />
|
||||
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
|
||||
<option name="FENCED_CODE_BLOCKS" value="true" />
|
||||
<option name="FOOTNOTES" value="false" />
|
||||
<option name="HARDWRAPS" value="false" />
|
||||
<option name="HTML_DEEP_PARSER" value="false" />
|
||||
<option name="INSERTED" value="false" />
|
||||
<option name="QUOTES" value="false" />
|
||||
<option name="RELAXEDHRULES" value="true" />
|
||||
<option name="SMARTS" value="false" />
|
||||
<option name="STRIKETHROUGH" value="true" />
|
||||
<option name="SUBSCRIPT" value="false" />
|
||||
<option name="SUPERSCRIPT" value="false" />
|
||||
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
|
||||
<option name="SUPPRESS_INLINE_HTML" value="false" />
|
||||
<option name="TABLES" value="true" />
|
||||
<option name="TASKLISTITEMS" value="true" />
|
||||
<option name="TOC" value="false" />
|
||||
<option name="WIKILINKS" value="false" />
|
||||
</PegdownExtensions>
|
||||
<ParserOptions>
|
||||
<option name="ADMONITION_EXT" value="false" />
|
||||
<option name="ATTRIBUTES_EXT" value="false" />
|
||||
<option name="COMMONMARK_LISTS" value="true" />
|
||||
<option name="DUMMY" value="false" />
|
||||
<option name="EMOJI_SHORTCUTS" value="true" />
|
||||
<option name="ENUMERATED_REFERENCES_EXT" value="false" />
|
||||
<option name="FLEXMARK_FRONT_MATTER" value="false" />
|
||||
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
|
||||
<option name="GFM_TABLE_RENDERING" value="true" />
|
||||
<option name="GITBOOK_URL_ENCODING" value="false" />
|
||||
<option name="GITHUB_LISTS" value="false" />
|
||||
<option name="GITHUB_WIKI_LINKS" value="false" />
|
||||
<option name="GITLAB_EXT" value="false" />
|
||||
<option name="GITLAB_MATH_EXT" value="false" />
|
||||
<option name="GITLAB_MERMAID_EXT" value="false" />
|
||||
<option name="HEADER_ID_NON_ASCII_TO_LOWERCASE" value="false" />
|
||||
<option name="HEADER_ID_NO_DUPED_DASHES" value="false" />
|
||||
<option name="JEKYLL_FRONT_MATTER" value="false" />
|
||||
<option name="MACROS_EXT" value="false" />
|
||||
<option name="NO_TEXT_ATTRIBUTES" value="false" />
|
||||
<option name="PARSE_HTML_ANCHOR_ID" value="false" />
|
||||
<option name="PLANTUML_FENCED_CODE" value="false" />
|
||||
<option name="PUML_FENCED_CODE" value="false" />
|
||||
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
|
||||
</ParserOptions>
|
||||
</ParserSettings>
|
||||
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false" imageUriSerials="false" addDocTypeHtml="true" noParaTags="false" plantUmlConversion="0" mathConversion="0">
|
||||
<GeneratorProvider>
|
||||
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
|
||||
</GeneratorProvider>
|
||||
<headerTop />
|
||||
<headerBottom />
|
||||
<bodyTop />
|
||||
<bodyBottom />
|
||||
</HtmlSettings>
|
||||
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
|
||||
<StylesheetProvider>
|
||||
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
|
||||
</StylesheetProvider>
|
||||
<ScriptProviders />
|
||||
<cssText />
|
||||
<cssUriHistory />
|
||||
</CssSettings>
|
||||
<AnnotatorSettings targetHasSpaces="true" linkCaseMismatch="true" wikiCaseMismatch="true" wikiLinkHasDashes="true" notUnderWikiHome="true" targetNotWikiPageExt="true" notUnderSourceWikiHome="true" targetNameHasAnchor="true" targetPathHasAnchor="true" wikiLinkHasSlash="true" wikiLinkHasSubdir="true" wikiLinkHasOnlyAnchor="true" linkTargetsWikiHasExt="true" linkTargetsWikiHasBadExt="true" notUnderSameRepo="true" targetNotUnderVcs="false" linkNeedsExt="true" linkHasBadExt="true" linkTargetNeedsExt="true" linkTargetHasBadExt="true" wikiLinkNotInWiki="true" imageTargetNotInRaw="true" repoRelativeAcrossVcsRoots="true" multipleWikiTargetsMatch="true" unresolvedLinkReference="true" linkIsIgnored="true" anchorIsIgnored="true" anchorIsUnresolved="true" anchorLineReferenceIsUnresolved="true" anchorLineReferenceFormat="true" anchorHasDuplicates="true" abbreviationDuplicates="true" abbreviationNotUsed="true" attributeIdDuplicateDefinition="true" attributeIdNotUsed="true" footnoteDuplicateDefinition="true" footnoteUnresolved="true" footnoteDuplicates="true" footnoteNotUsed="true" macroDuplicateDefinition="true" macroUnresolved="true" macroDuplicates="true" macroNotUsed="true" referenceDuplicateDefinition="true" referenceUnresolved="true" referenceDuplicates="true" referenceNotUsed="true" referenceUnresolvedNumericId="true" enumRefDuplicateDefinition="true" enumRefUnresolved="true" enumRefDuplicates="true" enumRefNotUsed="true" enumRefLinkUnresolved="true" enumRefLinkDuplicates="true" simTocUpdateNeeded="true" simTocTitleSpaceNeeded="true" />
|
||||
<HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="css" scriptDir="js" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
|
||||
<LinkMapSettings>
|
||||
<textMaps />
|
||||
</LinkMapSettings>
|
||||
</component>
|
||||
</project>
|
||||
8
CMake-Embarcadero-BCC32C/.idea/modules.xml
generated
Normal file
8
CMake-Embarcadero-BCC32C/.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/CMake-Embarcadero-BCC32C.iml" filepath="$PROJECT_DIR$/.idea/CMake-Embarcadero-BCC32C.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
CMake-Embarcadero-BCC32C/.idea/vcs.xml
generated
Normal file
6
CMake-Embarcadero-BCC32C/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
10
CMake-Embarcadero-BCC32C/CMakeLists.txt
Normal file
10
CMake-Embarcadero-BCC32C/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.17)
|
||||
|
||||
project(custom-compiler-test C CXX)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
add_link_options(-lGl -lGpr)
|
||||
add_executable(CMake-Embarcadero-BCC32C main.cpp cmain.c)
|
||||
|
||||
22
CMake-Embarcadero-BCC32C/CMakePresets.json
Normal file
22
CMake-Embarcadero-BCC32C/CMakePresets.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": 2,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "bcc32c",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "cmake-build-bcc",
|
||||
"cacheVariables": {
|
||||
"CMAKE_C_COMPILER": "C:/tools/BCC102/bin/bcc32c.exe",
|
||||
"CMAKE_CXX_COMPILER": "C:/tools/BCC102/bin/bcc32c.exe"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "BCC32C",
|
||||
"displayName": "Embarcadero BCC32C",
|
||||
"description": "Automatic preset for Embarcadero Free C Compiler",
|
||||
"configurePreset": "bcc32c"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
CMake-Embarcadero-BCC32C/README.md
Normal file
10
CMake-Embarcadero-BCC32C/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
Test project for Custom Compiler Feature
|
||||
===
|
||||
|
||||
This project is an example how to use [Embarcadero Free C Compiler](https://www.embarcadero.com/free-tools/ccompiler)
|
||||
with [CMake](https://cmake.org/) and [CLion](https://www.jetbrains.com/clion/)
|
||||
using [Custom Defined Compiler](https://youtrack.jetbrains.com/issue/CPP-9615)
|
||||
|
||||
There is a custom compiler definition file for the compiler: [custom-compiler-bcc-msp430.yaml](custom-compiler-bcc.yaml)
|
||||
|
||||
**NB**: The compiler is supposed to be installed to `c:\tools\bcc102` folder
|
||||
16
CMake-Embarcadero-BCC32C/cmain.c
Normal file
16
CMake-Embarcadero-BCC32C/cmain.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#pragma message ("Compile C")
|
||||
int getInt();
|
||||
long long fn() {
|
||||
return 3ll;
|
||||
}
|
||||
|
||||
void fan(unsigned int x) {
|
||||
const int res = x == 123;
|
||||
if (x == 456) {}
|
||||
}
|
||||
|
||||
void c_main() {
|
||||
puts("Hello, World from C!");
|
||||
}
|
||||
200
CMake-Embarcadero-BCC32C/custom-compiler-bcc.yaml
Normal file
200
CMake-Embarcadero-BCC32C/custom-compiler-bcc.yaml
Normal file
@@ -0,0 +1,200 @@
|
||||
aliases:
|
||||
- &Embarcadero-7-30-exe
|
||||
match-compiler-exe: "(.*/)?bcc32[xc](\\.exe)?"
|
||||
code-insight-target-name: aarch64
|
||||
- &Common-Embarcadero-7-30-defines
|
||||
__BORLANDC__: &version "0x0730"
|
||||
__CODEGEARC__: *version
|
||||
__CONSOLE__: "1"
|
||||
_CPPUNWIND: "1"
|
||||
_M_IX86: "0x12c"
|
||||
_PUSHPOP_SUPPORTED: "1"
|
||||
_STDCALL_SUPPORTED: "1"
|
||||
__TEMPLATES__: "1"
|
||||
__TLS__: "1"
|
||||
__TURBOC__: *version
|
||||
_WCHAR_T:
|
||||
_WCHAR_T_DEFINED:
|
||||
_Windows: "1"
|
||||
_WIN64: "1"
|
||||
_INTEGRAL_MAX_BITS: "64"
|
||||
_M_IX86_FP: "0"
|
||||
_WIN32: "1"
|
||||
__ATOMIC_ACQUIRE: "2"
|
||||
__ATOMIC_ACQ_REL: "4"
|
||||
__ATOMIC_CONSUME: "1"
|
||||
__ATOMIC_RELAXED: "0"
|
||||
__ATOMIC_RELEASE: "3"
|
||||
__ATOMIC_SEQ_CST: "5"
|
||||
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__"
|
||||
__CHAR16_TYPE__: "unsigned short"
|
||||
__CHAR32_TYPE__: "unsigned int"
|
||||
__CHAR_BIT__: "8"
|
||||
__CODEGEARC_VERSION__: "0x7308CAF"
|
||||
__CONSTANT_CFSTRINGS__: "1"
|
||||
__DBL_DENORM_MIN__: "4.9406564584124654e-324"
|
||||
__DBL_DIG__: "15"
|
||||
__DBL_EPSILON__: "2.2204460492503131e-16"
|
||||
__DBL_HAS_DENORM__: "1"
|
||||
__DBL_HAS_INFINITY__: "1"
|
||||
__DBL_HAS_QUIET_NAN__: "1"
|
||||
__DBL_MANT_DIG__: "53"
|
||||
__DBL_MAX_10_EXP__: "308"
|
||||
__DBL_MAX_EXP__: "1024"
|
||||
__DBL_MAX__: "1.7976931348623157e+308"
|
||||
__DBL_MIN_10_EXP__: "(-307)"
|
||||
__DBL_MIN_EXP__: "(-1021)"
|
||||
__DBL_MIN__: "2.2250738585072014e-308"
|
||||
__DECIMAL_DIG__: "21"
|
||||
__FINITE_MATH_ONLY__: "0"
|
||||
__FLAT__: "1"
|
||||
__FLT_DENORM_MIN__: "1.40129846e-45F"
|
||||
__FLT_DIG__: "6"
|
||||
__FLT_EPSILON__: "1.19209290e-7F"
|
||||
__FLT_EVAL_METHOD__: "2"
|
||||
__FLT_HAS_DENORM__: "1"
|
||||
__FLT_HAS_INFINITY__: "1"
|
||||
__FLT_HAS_QUIET_NAN__: "1"
|
||||
__FLT_MANT_DIG__: "24"
|
||||
__FLT_MAX_10_EXP__: "38"
|
||||
__FLT_MAX_EXP__: "128"
|
||||
__FLT_MAX__: "3.40282347e+38F"
|
||||
__FLT_MIN_10_EXP__: "(-37)"
|
||||
__FLT_MIN_EXP__: "(-125)"
|
||||
__FLT_MIN__: "1.17549435e-38F"
|
||||
__FLT_RADIX__: "2"
|
||||
__FUNC__: "__FUNCTION__"
|
||||
__GCC_ATOMIC_BOOL_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_CHAR_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_INT_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_LLONG_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_LONG_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_POINTER_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_SHORT_LOCK_FREE: "2"
|
||||
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1"
|
||||
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2"
|
||||
__GNUC_STDC_INLINE__: "1"
|
||||
__GXX_RTTI: "1"
|
||||
__INT16_TYPE__: "short"
|
||||
__INT32_TYPE__: "int"
|
||||
__INT64_C_SUFFIX__: "LL"
|
||||
__INT64_TYPE__: "long long int"
|
||||
__INT8_TYPE__: "char"
|
||||
__INTMAX_MAX__: "9223372036854775807LL"
|
||||
__INTMAX_TYPE__: "long long int"
|
||||
__INTMAX_WIDTH__: "64"
|
||||
__INTPTR_TYPE__: "int"
|
||||
__INTPTR_WIDTH__: "32"
|
||||
__INT_MAX__: "2147483647"
|
||||
__LDBL_DENORM_MIN__: "3.64519953188247460253e-4951L"
|
||||
__LDBL_DIG__: "18"
|
||||
__LDBL_EPSILON__: "1.08420217248550443401e-19L"
|
||||
__LDBL_HAS_DENORM__: "1"
|
||||
__LDBL_HAS_INFINITY__: "1"
|
||||
__LDBL_HAS_QUIET_NAN__: "1"
|
||||
__LDBL_MANT_DIG__: "64"
|
||||
__LDBL_MAX_10_EXP__: "4932"
|
||||
__LDBL_MAX_EXP__: "16384"
|
||||
__LDBL_MAX__: "1.18973149535723176502e+4932L"
|
||||
__LDBL_MIN_10_EXP__: "(-4931)"
|
||||
__LDBL_MIN_EXP__: "(-16381)"
|
||||
__LDBL_MIN__: "3.36210314311209350626e-4932L"
|
||||
__LITTLE_ENDIAN__: "1"
|
||||
__LONG_LONG_MAX__: "9223372036854775807LL"
|
||||
__LONG_MAX__: "2147483647L"
|
||||
__NO_INLINE__: "1"
|
||||
__NO_MATH_INLINES: "1"
|
||||
__ORDER_BIG_ENDIAN__: "4321"
|
||||
__ORDER_LITTLE_ENDIAN__: "1234"
|
||||
__ORDER_PDP_ENDIAN__: "3412"
|
||||
__POINTER_WIDTH__: "32"
|
||||
__PRAGMA_REDEFINE_EXTNAME: "1"
|
||||
__PTRDIFF_TYPE__: "int"
|
||||
__PTRDIFF_WIDTH__: "32"
|
||||
__REGISTER_PREFIX__: "__SCHAR_MAX__ 127"
|
||||
__SHRT_MAX__: "32767"
|
||||
__SIG_ATOMIC_WIDTH__: "32"
|
||||
__SIZEOF_DOUBLE__: "8"
|
||||
__SIZEOF_FLOAT__: "4"
|
||||
__SIZEOF_INT__: "4"
|
||||
__SIZEOF_LONG_DOUBLE__: "10"
|
||||
__SIZEOF_LONG_LONG__: "8"
|
||||
__SIZEOF_LONG__: "4"
|
||||
__SIZEOF_POINTER__: "4"
|
||||
__SIZEOF_PTRDIFF_T__: "4"
|
||||
__SIZEOF_SHORT__: "2"
|
||||
__SIZEOF_SIZE_T__: "4"
|
||||
__SIZEOF_WCHAR_T__: "2"
|
||||
__SIZEOF_WINT_T__: "4"
|
||||
__SIZE_MAX__: "4294967295U"
|
||||
__SIZE_TYPE__: "unsigned int"
|
||||
__SIZE_WIDTH__: "32"
|
||||
__STDC_HOSTED__: "1"
|
||||
__STDC_VERSION__: "199901L"
|
||||
__STRICT_ANSI__: "1"
|
||||
__UINTMAX_TYPE__: "long long unsigned int"
|
||||
__USER_LABEL_PREFIX__: "_"
|
||||
__UUID_SUPPORT__: "1"
|
||||
__VERSION__: "4.2.1 Compatible Embarcadero Technologies Inc. bcc32x 3.3.1 (36350.30c6854.779bede)"
|
||||
__WCHAR_MAX__: "65535U"
|
||||
__WCHAR_TYPE__: "unsigned short"
|
||||
__WCHAR_UNSIGNED__: "1"
|
||||
__WCHAR_WIDTH__: "16"
|
||||
__WINT_TYPE__: "int"
|
||||
__WINT_WIDTH__: "32"
|
||||
__clang__: "1"
|
||||
__clang_major__: "3"
|
||||
__clang_minor__: "3"
|
||||
__clang_patchlevel__: "1"
|
||||
__clang_version__: "3.3.1 (36350.30c6854.779bede)"
|
||||
__i386: "1"
|
||||
__i386__: "1"
|
||||
__llvm__: "1"
|
||||
__BCOPT__: "1"
|
||||
__BOOL__: "1"
|
||||
|
||||
- &C-Embarcadero-7-30
|
||||
include-dirs: ${compiler-exe-dir}/../include/windows/crtl
|
||||
defines:
|
||||
<<: *Common-Embarcadero-7-30-defines
|
||||
|
||||
- &CPP-Embarcadero-7-30
|
||||
include-dirs:
|
||||
- ${compiler-exe-dir}/../include/windows/crtl
|
||||
- ${compiler-exe-dir}/../include/dinkumware64
|
||||
defines:
|
||||
<<: *Common-Embarcadero-7-30-defines
|
||||
__BCPLUSPLUS__: *version
|
||||
__cplusplus: "201402L"
|
||||
__TCPLUSPLUS__: *version
|
||||
defines-text: "
|
||||
#define defined_as_text some_text
|
||||
"
|
||||
|
||||
compilers:
|
||||
|
||||
- description: C Embarcadero 7.30 by extension
|
||||
<<: *Embarcadero-7-30-exe
|
||||
match-sources: ".*\\.c"
|
||||
match-language: C
|
||||
<<: *C-Embarcadero-7-30
|
||||
|
||||
- description: CPP Embarcadero 7.30 by extension
|
||||
<<: *Embarcadero-7-30-exe
|
||||
match-sources: ".*\\.cpp"
|
||||
match-language: CPP
|
||||
<<: *CPP-Embarcadero-7-30
|
||||
|
||||
- description: CPP Embarcadero 7.30 by join cli key
|
||||
<<: *Embarcadero-7-30-exe
|
||||
match-args: "-xc++"
|
||||
match-language: CPP
|
||||
<<: *CPP-Embarcadero-7-30
|
||||
|
||||
- description: CPP Embarcadero 7.30 by split cli key
|
||||
<<: *Embarcadero-7-30-exe
|
||||
match-args: "-x c++"
|
||||
match-language: CPP
|
||||
<<: *CPP-Embarcadero-7-30
|
||||
10
CMake-Embarcadero-BCC32C/main.cpp
Normal file
10
CMake-Embarcadero-BCC32C/main.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <iostream>
|
||||
|
||||
#pragma message ("Compile C++")
|
||||
extern "C" void c_main(void);
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello, World, from C++!" << std::endl;
|
||||
c_main();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user