Do not fail when build with CC="clang"

clang seems much better in building elementary, while gcc need a lot
of ram and tend to fail badly

So for now on clang is the suggested compiler to use
This commit is contained in:
Davide Andreoli 2020-06-25 18:54:03 +02:00
parent 22cc200a61
commit 5a02f13210
1 changed files with 10 additions and 6 deletions

View File

@ -211,13 +211,17 @@ ext_modules = []
py_modules = []
packages = ["efl"]
common_cflags = [
"-fno-var-tracking-assignments", # seems to lower the mem used during build
"-Wno-misleading-indentation", # not needed (we don't indent the C code)
"-Wno-deprecated-declarations", # we bind deprecated functions
"-Wno-unused-variable", # eo_instance_from_object() is unused
"-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros
# "-Werror", "-Wfatal-errors" # use this to stop build on first warnings
"-fno-var-tracking-assignments", # seems to lower the mem used during build
"-Wno-misleading-indentation", # not needed (we don't indent the C code)
"-Wno-deprecated-declarations", # we bind deprecated functions
"-Wno-unused-variable", # eo_instance_from_object() is unused
"-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros
# "-Werror", "-Wfatal-errors" # use this to stop build on first warnings
]
# remove clang unknown flags
if os.getenv("CC") == "clang":
common_cflags.remove('-fno-var-tracking-assignments')
if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
sys.stdout.write("Python-EFL: %s\n" % RELEASE)