Unverified Commit 97e493f4 authored by Kirthi Shankar Sivamani's avatar Kirthi Shankar Sivamani Committed by GitHub
Browse files

Remove deprecated global option for debug build (#1848)



RM deprecated global option for debug build
Signed-off-by: default avatarKirthi Shankar Sivamani <ksivamani@nvidia.com>
parent 151a0af6
......@@ -21,13 +21,7 @@ from typing import List, Optional, Tuple, Union
@functools.lru_cache(maxsize=None)
def debug_build_enabled() -> bool:
"""Whether to build with a debug configuration"""
for arg in sys.argv:
if arg == "--debug":
sys.argv.remove(arg)
return True
if int(os.getenv("NVTE_BUILD_DEBUG", "0")):
return True
return False
return bool(int(os.getenv("NVTE_BUILD_DEBUG", "0")))
@functools.lru_cache(maxsize=None)
......
......@@ -112,7 +112,7 @@ To build the C++ extensions with debug symbols, e.g. with the `-g` flag:
.. code-block:: bash
pip3 install --no-build-isolation . --global-option=--debug
NVTE_BUILD_DEBUG=1 pip3 install --no-build-isolation .
.. include:: ../README.rst
:start-after: troubleshooting-begin-marker-do-not-remove
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment