1 Commits
dev ... main

Author SHA1 Message Date
539d5d6027 [DEV] better integration of libcxx 2016-01-11 21:30:50 +01:00
2 changed files with 8 additions and 5 deletions

2
cxx

Submodule cxx updated: 9a6a9c08e4...532b0b423c

View File

@@ -1,6 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
import lutin.module as module import lutin.module as module
import lutin.tools as tools import lutin.tools as tools
import lutin.debug as debug
import os import os
@@ -23,7 +24,7 @@ def get_maintainer():
return ["LLVM Team"] return ["LLVM Team"]
def get_version(): def get_version():
return [3,5,"dev"] return [3,4]
def create(target, module_name): def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type()) my_module = module.Module(__file__, module_name, get_type())
@@ -91,9 +92,11 @@ def create(target, module_name):
], ],
destination_path="include/support/win32") destination_path="include/support/win32")
# export flag that we use LLVM C++ lib # export flag that we use LLVM C++ lib
my_module.add_export_flag("c++", ["-D__STDCPP_LLVM__" my_module.add_export_flag("c++", ["-D__STDCPP_LLVM__", "-nostdinc++"])
#, "-nostdlib" # remove some exception in linux system ...
]) my_module.compile_flags("c++", ["-D__GLIBCXX__"])
# 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])
return my_module return my_module