Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From c22ba66c40f786eda969c17884f36eb8f5dc38f0 Mon Sep 17 00:00:00 2001
- From: Leo Gaspard <[email protected]>
- Date: Sun, 4 Nov 2012 18:25:55 +0100
- Subject: [PATCH] generator: Added c++11 and c11
- ---
- tools/generator/gen/generator_c.rb | 2 +-
- tools/generator/gen/generator_cxx.rb | 2 +-
- tools/generator/gen/makefile_c.rb | 2 +-
- tools/generator/gen/makefile_cxx.rb | 2 +-
- 4 files changed, 4 insertions(+), 4 deletions(-)
- diff --git a/tools/generator/gen/generator_c.rb b/tools/generator/gen/generator_c.rb
- index 8e7d5b9..d59b2ca 100644
- --- a/tools/generator/gen/generator_c.rb
- +++ b/tools/generator/gen/generator_c.rb
- @@ -331,7 +331,7 @@ lib_TARGETS = #{target}
- # des flags de compilation.
- #{target}-srcs = #{@user_file}
- #{target}-dists =
- -#{target}-cflags = -ggdb3 -Wall -Wextra
- +#{target}-cflags = -ggdb3 -Wall -Wextra -std=c11
- # Evite de toucher a ce qui suit
- #{target}-dists += #{@header_file} interface.hh
- diff --git a/tools/generator/gen/generator_cxx.rb b/tools/generator/gen/generator_cxx.rb
- index 7793081..96f5f1c 100644
- --- a/tools/generator/gen/generator_cxx.rb
- +++ b/tools/generator/gen/generator_cxx.rb
- @@ -73,7 +73,7 @@ lib_TARGETS = #{target}
- # des flags de compilation.
- #{target}-srcs = #{@source_file}
- #{target}-dists =
- -#{target}-cxxflags = -ggdb3 -Wall
- +#{target}-cxxflags = -ggdb3 -Wall -std=c++11
- # Evite de toucher a ce qui suit
- #{target}-dists += #{@header_file}
- diff --git a/tools/generator/gen/makefile_c.rb b/tools/generator/gen/makefile_c.rb
- index d9cd2bd..0f9854d 100644
- --- a/tools/generator/gen/makefile_c.rb
- +++ b/tools/generator/gen/makefile_c.rb
- @@ -20,7 +20,7 @@ class CMakefile
- lib_TARGETS = #{target}
- #{target}-srcs = $(wildcard *.c)
- -#{target}-cflags = -ggdb3 -Wall -Wextra
- +#{target}-cflags = -ggdb3 -Wall -Wextra -std=c11
- # Evite de toucher a ce qui suit
- #{target}-srcs += interface.cc
- diff --git a/tools/generator/gen/makefile_cxx.rb b/tools/generator/gen/makefile_cxx.rb
- index fa336a3..83cf81f 100644
- --- a/tools/generator/gen/makefile_cxx.rb
- +++ b/tools/generator/gen/makefile_cxx.rb
- @@ -22,7 +22,7 @@ lib_TARGETS = #{target}
- # Tu peux rajouter des fichiers sources, headers, ou changer
- # des flags de compilation.
- #{target}-srcs = $(wildcard *.cc) $(wildcard *.cpp)
- -#{target}-cxxflags = -O2 -Wall
- +#{target}-cxxflags = -O2 -Wall -std=c++11
- V=1
- include $(MFPATH)/rules.mk
- --
- 1.8.0
Advertisement
Add Comment
Please, Sign In to add comment