Skip to content

Commit 44ae1e5

Browse files
hmaarrfkdatumbox
andauthored
Allow gcc to be overwritten with an environment variable (#5261)
* Allow gcc to be overwritten with an environment variable * change quoting style Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent 508c79d commit 44ae1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def get_extensions():
365365
ffmpeg_include_dir = os.path.join(ffmpeg_root, "include")
366366
ffmpeg_library_dir = os.path.join(ffmpeg_root, "lib")
367367

368-
gcc = distutils.spawn.find_executable("gcc")
368+
gcc = os.environ.get("CC", distutils.spawn.find_executable("gcc"))
369369
platform_tag = subprocess.run([gcc, "-print-multiarch"], stdout=subprocess.PIPE)
370370
platform_tag = platform_tag.stdout.strip().decode("utf-8")
371371

0 commit comments

Comments
 (0)