Enable cython emit_linenums for debugger source-mapping
This option tells cython to emit '#line' directives mapping back to the original source pyx file,
which gives reasonably good source-mapping in MSVC (and hopefully elsewhere).
@@ -484,10 +484,15 @@ def ext_attr_update(attr, value):
# some of these will error out if passed directly
# to Extension(..) above
+# - build with `#line` directive annotations
+# (equivalent to `emit_linenums` command line directive)
+ext_attr_update('cython_line_directives', 1)
+
# - generate XML debug mapping file (`cython_debug`)
if TILEDB_DEBUG_BUILD:
ext_attr_update('cython_gdb', True)
# - set rt lib dirs to get correct RPATH on unixy platforms
+# note that we set rpath for darwin separately above.
if not is_windows():
ext_attr_update('runtime_library_dirs', LIB_DIRS)
