Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ If you're running a timelord, the following tests are available, depending of wh

Those tests will simulate the vdf_client and verify for correctness the produced proofs.

## Debug builds

To build and install a debug build of the python module, run:

```bash
python setup.py build_ext --debug install
```

## Contributing and workflow

Contributions are welcome and more details are available in chia-blockchain's
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,16 @@ def build_extension(self, ext):
build_args += ["--", "/m"]
else:
cmake_args += ["-DCMAKE_BUILD_TYPE=" + cfg]
cmake_args += ["-DCMAKE_CXX_FLAGS_DEBUG=-fsanitize=address -fsanitize=undefined",
"-DCMAKE_LINKER_FLAGS_DEBUG=-fsanitize=address -fsanitize=undefined"]
build_args += ["--", "-j", "6"]

env = os.environ.copy()
env["CXXFLAGS"] = '{} -DVERSION_INFO=\\"{}\\"'.format(
env.get("CXXFLAGS", ""), self.distribution.get_version()
)
subprocess.check_call(["cmake", ext.sourcedir] + cmake_args, env=env)
subprocess.check_call(["cmake", "--build", "."] + build_args)
subprocess.check_call(["cmake", "--build", "."] + build_args + ["--", "VERBOSE=1"])


class get_pybind_include(object):
Expand Down