summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-CXX.cmake
blob: 04ccbe5e822b221132bd30a7300a00812fef08ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This file is processed when the IAR compiler is used for a C++ file

include(Compiler/IAR)
include(Compiler/CMakeCommonCompilerMacros)

# Common
if(NOT CMAKE_IAR_CXX_FLAG)
  if(NOT CMAKE_CXX_COMPILER_VERSION)
    message(FATAL_ERROR "CMAKE_CXX_COMPILER_VERSION not detected. This should be automatic.")
  endif()

  if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 7)
    set(CMAKE_IAR_CXX_FLAG --c++)
  else()
    set(CMAKE_IAR_CXX_FLAG --eec++)
  endif()
endif()

set(CMAKE_CXX_EXTENSION_COMPILE_OPTION -e)

if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 7)
  set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "")
  set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION -e)
  set(CMAKE_CXX03_STANDARD_COMPILE_OPTION "")
  set(CMAKE_CXX03_EXTENSION_COMPILE_OPTION -e)
endif()

if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_GREATER 8)
  set(CMAKE_CXX11_STANDARD_COMPILE_OPTION "")
  set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION -e)
  set(CMAKE_CXX14_STANDARD_COMPILE_OPTION "")
  set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION -e)
endif()

# Architecture specific
if("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "ARM")
  if(CMAKE_CXX_COMPILER_VERSION_INTERNAL VERSION_LESS 7)
    # IAR ARM 4.X uses xlink.exe, detection is not yet implemented
    message(FATAL_ERROR "CMAKE_CXX_COMPILER_VERSION = ${CMAKE_C_COMPILER_VERSION} not supported by CMake.")
  endif()
  __compiler_iar_ilink(CXX)
  __compiler_check_default_language_standard(CXX 6.10 98 8.10 14)

elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "RX")
  __compiler_iar_ilink(CXX)
  __compiler_check_default_language_standard(CXX 2.10 98 4.10 14)

elseif("${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "AVR")
  __compiler_iar_xlink(CXX)
  __compiler_check_default_language_standard(CXX 7.10 98)

  set(CMAKE_CXX_OUTPUT_EXTENSION ".r90")
  if(NOT CMAKE_CXX_LINK_FLAGS)
    set(CMAKE_CXX_LINK_FLAGS "-Fmotorola")
  endif()

  # add the target specific include directory:
  get_filename_component(_compilerDir "${CMAKE_C_COMPILER}" PATH)
  get_filename_component(_compilerDir "${_compilerDir}" PATH)
  include_directories("${_compilerDir}/inc" )
  include_directories("${_compilerDir}/inc/Atmel" )

else()
  message(FATAL_ERROR "CMAKE_CXX_COMPILER_ARCHITECTURE_ID not detected. This should be automatic." )
endif()
5e4f43'>test/trefer.c
Commit message (Expand)AuthorAgeFilesLines
* Fixed Spelling Errors (#1166)Scot Breitenfeld2021-12-071-1/+1
* VFD plugins (#602)jhendersonHDF2021-09-291-2/+12
* Update clang config (#473)Quincey Koziol2021-03-171-3/+12
* Fixes various warnings noticed on Windows (#425)Dana Robinson2021-03-051-1/+1
* Update license url (#332)Larry Knox2021-02-171-1/+1
* Avoid aligned access for references by decoding into temporary buffer and the...Quincey Koziol2020-12-191-35/+32
* Clang-format of source filesAllen Byrne2020-09-301-465/+484
* Fixes a size mismatch when copying old-style to new-style referencesDana Robinson2020-08-121-4/+4
* Fixes memory leads in trefer.cDana Robinson2020-08-121-20/+22
* Merge pull request #2715 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:fix_vlen_ref to d...Jerome Soumagne2020-08-061-0/+303
|\
| * H5R: fix encoding of references that are part of compound typesJerome Soumagne2020-07-281-0/+303
* | Minor normalizations with hdf5_1_10Dana Robinson2020-07-311-4/+4
|/
* H5R: fix type conversion of references within vlen typeJerome Soumagne2020-07-161-0/+270
* Minor tweaks to testhdf5 code after normalization with 1.10.Dana Robinson2020-05-281-6/+6
* Trim trailing whitespaceQuincey Koziol2020-04-201-6/+6
* A fix in the cleaning up code for datatype when datatype initialization via H...vchoi2020-03-231-348/+388
* Reduce casts of HDcalloc()/HDmalloc() that -Wc++-compat required.David Young2020-01-291-1/+1
* squash cast warning fixkmu2020-01-231-3/+3
* Squashed commit of the token_refactoring branch:Dana Robinson2020-01-161-7/+7
* Small changes from the token_refactoring branch, to reduce the delta to developQuincey Koziol2020-01-041-1/+1
* Refactor all the 'H5VL_*_optional' callbacks to move the type of operation outQuincey Koziol2019-12-201-12/+24
* More fixes for previous committed PR #2079 dated Dec 5 2019.Vailin Choi2019-12-061-1/+1
* Merge pull request #2076 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:type_fixes to dev...Jerome Soumagne2019-12-051-133/+138
|\
| * Change hdset_reg_ref_t and H5R_ref_t from arrays of unsigned char toDavid Young2019-12-051-133/+138
* | Two fixes:Vailin Choi2019-12-051-1/+1
|/
* Yanked -Wc++-compat from the flags used to build the C library in bothDana Robinson2019-12-041-2/+2
* Add OAPL parameter to H5Rcreate_ APIsJordan Henderson2019-12-021-36/+36
* H5R: fix H5Tconv to check for null referencesJerome Soumagne2019-11-261-4/+4
* Add new H5R API that abstracts object, region and attribute reference typesJerome Soumagne2019-10-081-577/+1611
* OESS-29 Update HD prefix mostlyAllen Byrne2019-08-241-2/+2
* Fixed a memory issue in trefer.c.Dana Robinson2019-06-251-4/+4
* HDFFV-10365: Changes as described in the RFC: H5Sencode/H5Sdecode Format Change.Vailin Choi2019-04-061-24/+34
* Set V112 as the latest format and extend the arrays of version bounds.Vailin Choi2019-04-041-91/+135
* Revert "Merge pull request #1116 in HDFFV/hdf5 from ~HDFTEST/hdf5_hft:hdf5_1_...hdftest2018-06-241-132/+46
* Merge branch 'develop' into hdf5_1_10.syncM. Scot Breitenfeld2018-06-041-1/+1
|\
| * Changes made based on feedback from pull request #1039.Vailin Choi2018-05-141-1/+1
| * Fix for HDFFV-10180 Performance issues with H5Oget_info.Vailin Choi2018-04-241-1/+1
| * More includes cleanupAllen Byrne2018-02-141-90/+88
| * Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5...Larry Knox2017-04-25