浏览代码

scons: Force C++ linkage.

We have some C++ code (LLVM), which must be linked with g++ on certain
platforms. SCons tries to guess when to use g++ by looking to the source files,
but this fails, if the C++ code is not list in the command line, but inside in
the library.
tags/mesa_20090313
José Fonseca 17 年前
父节点
当前提交
9a76798112
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      SConstruct

+ 4
- 1
SConstruct 查看文件

@@ -206,7 +206,10 @@ if llvm:
env.ParseConfig('llvm-config --cflags --ldflags --libs')
env.Append(CPPDEFINES = ['MESA_LLVM'])
env.Append(CXXFLAGS = ['-Wno-long-long'])

# Force C++ linkage
if env['PLATFORM'] in ('posix',):
env['LINK'] = env['CXX']

# libGL
if platform not in ('winddk',):

正在加载...
取消
保存