Skip to content

Commit

Permalink
Merge pull request #7 from castorf:patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 359355959
  • Loading branch information
copybara-github committed Feb 24, 2021
2 parents 4fbf495 + af9e18c commit 2289b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ http://llvm.org/releases/download.html instead of building it from
source.)
"""

import commands
import subprocess
import os

env = Environment(CPPPATH = [os.environ['EIGEN_PATH'],
os.environ['GTEST_SOURCE'] + '/include'])
GCC_VERSION = commands.getoutput(env['CXX'] + ' -dumpversion')
GCC_VERSION = subprocess.getoutput(env['CXX'] + ' -dumpversion')
if GCC_VERSION.startswith('4.6'):
# The override keyword is not supported in GCC 4.6, so we define it away.
env.MergeFlags(['-std=c++0x -Doverride='])
Expand Down

0 comments on commit 2289b02

Please sign in to comment.