2 Commits
dev ... devArch

Author SHA1 Message Date
bc1175f5b8 [DEV] try debug on archlinux 2016-01-14 21:48:48 +01:00
539d5d6027 [DEV] better integration of libcxx 2016-01-11 21:30:50 +01:00

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
@@ -64,7 +65,6 @@ def create(target, module_name):
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [
"-nostdinc++", "-nostdinc++",
"-std=c++11", "-std=c++11",
"-fstrict-aliasing",
"-Wall", "-Wall",
"-Wextra", "-Wextra",
"-Wshadow", "-Wshadow",
@@ -73,6 +73,9 @@ def create(target, module_name):
"-Wstrict-aliasing=2", "-Wstrict-aliasing=2",
"-Wstrict-overflow=4" "-Wstrict-overflow=4"
]) ])
my_module.add_export_flag('c++', [
"-fstrict-aliasing"
])
# add local include path to build # add local include path to build
my_module.add_path(os.path.join(tools.get_current_path(__file__), "cxx/include")) my_module.add_path(os.path.join(tools.get_current_path(__file__), "cxx/include"))
my_module.add_header_file([ my_module.add_header_file([
@@ -91,7 +94,13 @@ 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__", "-nostdlib"]) 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])
return my_module return my_module