You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/04/26 09:53:20 UTC

[mynewt-core] 01/02: compiler/riscv: Add c++ support

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 5c05afffc35980af23fe7bae6cdbb7b41a63f17f
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Wed Apr 21 09:27:00 2021 +0200

    compiler/riscv: Add c++ support
    
    comipier.yml was missing g++ definition.
    -std=gnu11 was removed due to incompatibility with g++
---
 compiler/riscv64/compiler.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler/riscv64/compiler.yml b/compiler/riscv64/compiler.yml
index 998ee9f..f43c673 100644
--- a/compiler/riscv64/compiler.yml
+++ b/compiler/riscv64/compiler.yml
@@ -18,13 +18,14 @@
 #
 
 compiler.path.cc: "riscv64-unknown-elf-gcc"
+compiler.path.cpp: "riscv64-unknown-elf-g++"
 compiler.path.as: "riscv64-unknown-elf-gcc"
 compiler.path.archive: "riscv64-unknown-elf-ar"
 compiler.path.objdump: "riscv64-unknown-elf-objdump"
 compiler.path.objsize: "riscv64-unknown-elf-size"
 compiler.path.objcopy: "riscv64-unknown-elf-objcopy"
 
-compiler.flags.base: [-std=gnu11, -Wall, -Werror, -Wno-format-truncation, -ffunction-sections, -fdata-sections, -fno-builtin-printf, -fno-common]
+compiler.flags.base: [-Wall, -Werror, -Wno-format-truncation, -ffunction-sections, -fdata-sections, -fno-builtin-printf, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
 compiler.flags.debug: [compiler.flags.base, -Og, -ggdb]