Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
c015d12e
Commit
c015d12e
authored
Nov 19, 2018
by
Ubuntu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default to -std=gnu++11 when needed
parent
b47d7574
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
common.inc
common.inc
+7
-4
No files found.
common.inc
View file @
c015d12e
...
@@ -8,10 +8,13 @@ DEFINES := -DNDEBUG
...
@@ -8,10 +8,13 @@ DEFINES := -DNDEBUG
# g++ versions less than 6 will default to C++ 98
# g++ versions less than 6 will default to C++ 98
ifeq
(
$
(
CXX
),
g
++
)
ifeq
(
$
(
CXX
),
g
++
)
CPPSTD
:=
$
(
shell
test
`g++ --version | grep ^g++ | sed 's/^.* //g' | cut -d '.' -f 1`
-
ge
6
||
echo
-
std
=
gnu
++
11
)
lessthansix
:=
$
(
shell
expr
`g++ -dumpversion | cut -d '.' -f 1`
\
<
6
)
ifeq
(
$
(
lessthansix
),
1
)
CPPSTD
:=
-
std
=
gnu
++
11
endif
endif
endif
STANDARD_FLAGS
:=
-
Wall
-
Wuninitialized
$
(
CPPSTD
)
STANDARD_FLAGS
:=
-
Wall
-
Wuninitialized
RELEASE_FLAGS
:=
-
O2
RELEASE_FLAGS
:=
-
O2
DEBUG_FLAGS
:=
-
g
DEBUG_FLAGS
:=
-
g
...
@@ -35,10 +38,10 @@ endif
...
@@ -35,10 +38,10 @@ endif
%.
hpp
.
gch
:
%.
hpp
%.
hpp
.
gch
:
%.
hpp
echo
Building
precompiled
header
:
$
@
echo
Building
precompiled
header
:
$
@
$
(
COMPILE
.
cpp
)
$
(
INCLUDES
)
$
(
DEFINES
)
$
(
STANDARD_FLAGS
)
$
(
FLAVOR_FLAGS
)
$
^
$
(
COMPILE
.
cpp
)
$
(
CPPSTD
)
$
(
INCLUDES
)
$
(
DEFINES
)
$
(
STANDARD_FLAGS
)
$
(
FLAVOR_FLAGS
)
$
^
%.
o
:
%.
cpp
%.
o
:
%.
cpp
$
(
COMPILE
.
cpp
)
$
(
INCLUDES
)
$
(
DEFINES
)
$
(
STANDARD_FLAGS
)
$
(
FLAVOR_FLAGS
)
$
^
$
(
COMPILE
.
cpp
)
$
(
CPPSTD
)
$
(
INCLUDES
)
$
(
DEFINES
)
$
(
STANDARD_FLAGS
)
$
(
FLAVOR_FLAGS
)
$
^
# put "all" target first so that it is the default
# put "all" target first so that it is the default
all
:
all
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment