Browse Source

bfin-elf.cmake: set -std=gnu99 for blackfin targets (unsupported gnu11)

pull/11/head
gkostka 9 years ago
parent
commit
d3bb06fff7
  1. 2
      toolchain/common/bfin-elf.cmake

2
toolchain/common/bfin-elf.cmake

@ -7,7 +7,7 @@ set(OBJCOPY bfin-elf-objcopy)
set(OBJDUMP bfin-elf-objdump)
set(SIZE bfin-elf-size)
set(CMAKE_C_FLAGS "${MCPU_FLAGS} -Wall -std=gnu11 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
set(CMAKE_C_FLAGS "${MCPU_FLAGS} -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")
set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")
set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")

Loading…
Cancel
Save