summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2020-06-25 18:54:03 +0200
committerDave Andreoli <dave@gurumeditation.it>2020-06-25 18:54:03 +0200
commit5a02f132107abc6a7d022eb349f7ff6338b71feb (patch)
tree6fab6ac19ef1bf5f38ffa9d2b6e8eb0b3120a495
parent22cc200a61eda3b6e8d431e991ec1b7d3de5a05b (diff)
Do not fail when build with CC="clang"HEADmaster
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
-rwxr-xr-xsetup.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 3ed0028..a863a19 100755
--- a/setup.py
+++ b/setup.py
@@ -211,13 +211,17 @@ ext_modules = []
211py_modules = [] 211py_modules = []
212packages = ["efl"] 212packages = ["efl"]
213common_cflags = [ 213common_cflags = [
214 "-fno-var-tracking-assignments", # seems to lower the mem used during build 214 "-fno-var-tracking-assignments", # seems to lower the mem used during build
215 "-Wno-misleading-indentation", # not needed (we don't indent the C code) 215 "-Wno-misleading-indentation", # not needed (we don't indent the C code)
216 "-Wno-deprecated-declarations", # we bind deprecated functions 216 "-Wno-deprecated-declarations", # we bind deprecated functions
217 "-Wno-unused-variable", # eo_instance_from_object() is unused 217 "-Wno-unused-variable", # eo_instance_from_object() is unused
218 "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros 218 "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros
219 # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings 219 # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings
220] 220]
221# remove clang unknown flags
222if os.getenv("CC") == "clang":
223 common_cflags.remove('-fno-var-tracking-assignments')
224
221 225
222if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): 226if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
223 sys.stdout.write("Python-EFL: %s\n" % RELEASE) 227 sys.stdout.write("Python-EFL: %s\n" % RELEASE)