1 Commits
devArch ... dev

Author SHA1 Message Date
35302ed3f8 [DEV] integrate master dev version 2016-01-05 23:40:21 +01:00
2 changed files with 6 additions and 13 deletions

2
cxx

Submodule cxx updated: 532b0b423c...9a6a9c08e4

View File

@@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.tools as tools
import lutin.debug as debug
import os
@@ -24,7 +23,7 @@ def get_maintainer():
return ["LLVM Team"]
def get_version():
return [3,4]
return [3,5,"dev"]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
@@ -65,6 +64,7 @@ def create(target, module_name):
my_module.compile_flags('c++', [
"-nostdinc++",
"-std=c++11",
"-fstrict-aliasing",
"-Wall",
"-Wextra",
"-Wshadow",
@@ -73,9 +73,6 @@ def create(target, module_name):
"-Wstrict-aliasing=2",
"-Wstrict-overflow=4"
])
my_module.add_export_flag('c++', [
"-fstrict-aliasing"
])
# add local include path to build
my_module.add_path(os.path.join(tools.get_current_path(__file__), "cxx/include"))
my_module.add_header_file([
@@ -94,13 +91,9 @@ def create(target, module_name):
],
destination_path="include/support/win32")
# export flag that we use LLVM C++ lib
my_module.add_export_flag("c++", ["-D__STDCPP_LLVM__", "-nostdinc++"])
# remove some exception in linux system ...
my_module.add_export_flag("c++", ["-D__GLIBCXX__"])
my_module.add_export_flag("c++", ["-D__GLIBC__"])
my_module.add_export_flag("c++", ["-D_LIBCPP_NO_EXCEPTIONS", "-D__GLIBC__"])
# dev add basic lib supc used for allocation and basic c++ environement ==> todo: set a basic constructor (-lSystem for MacOS)
my_module.add_export_flag("link", [target.stdlib_name_libsupc])
my_module.add_export_flag("c++", ["-D__STDCPP_LLVM__"
#, "-nostdlib"
])
return my_module