Print

Print


Dear @amadio, experts, 

We encountered an issue building xrootd for MacOS platforms. We discovered that no C++ standard was being passed when compiling xrootd Python bindings.

After investigating, we found that redefining cfg_vars["OPT"], cfg_vars["CFLAGS"], and cfg_vars["PY_CFLAGS"] in setup.py did not actually change the compilation flags. We attempted to append some meaningless flags to them, and it did not fail for Linux platforms. It proves that it is not propagated properly.

why not use the approach outlined in this resource on exploiting extra_compile_args?

https://pythonextensionpatterns.readthedocs.io/en/latest/compiler_flags.html

```
extra_compile_args += ["-std=c++11", "-Wall", "-Wextra"]
if _DEBUG:
    extra_compile_args += ["-g3", "-O0", "-DDEBUG=%s" % _DEBUG_LEVEL, "-UNDEBUG"]
else:
    extra_compile_args += ["-DNDEBUG", "-O3"]
```




-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/2001
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1