roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.03k stars 205 forks source link

build-3rdparty.py: remove default value for `variant` variable #491

Closed adrianopol closed 10 months ago

adrianopol commented 1 year ago

This script is used for building 3rd-party dependencies when a user passes --build-3rdparty=dep1,dep2,... option to the scons utility like:

scons -Q --build-3rdparty=openfec --enable-tests test

variant argument is mandatory when running the script (see line variant = sys.argv[4] and below), but the function makeflags() has empty default empty-string value for it (which is used for example for libuv dependency):

def makeflags(workdir, toolchain, env, deplist, cflags='', ldflags='', variant='', pthread=False):

This is a bug.

Acceptance criteria

Implementation details

gavv commented 1 year ago

Because of this issue --enable-debug-3rdparty does not work for all dependencies

gavv commented 10 months ago

Seem that current code does not have this problem.

gavv commented 10 months ago

https://github.com/roc-streaming/roc-toolkit/blob/229a74eb3ba2229017203de63fe8798813e87185/scripts/scons_helpers/build-3rdparty.py