Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Fix indentation and new option for threads
  • Loading branch information
sergey-dryabzhinsky authored Jan 19, 2025
1 parent fa2be87 commit a7ac0d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
DISABLE_ASM=0

SUP_THREADS="ZSTD_THREADS" in os.environ
if "--libzstd-threads" in sys.argv:
# Support multithreading in lizstd
if "--libzstd--no-threads" in sys.argv:
# Disable support multithreading in lizstd
SUP_THREADS=False
sys.argv.remove("--libzstd-threads")
ENABLE_THREADS=0
if SUP_THREADS:
sys.argv.remove("--libzstd-no-threads")
ENABLE_THREADS=0
if SUP_THREADS:
ENABLE_THREADS=1

SUP_ASM_BMI2="ZSTD_ASM_BMI2" in os.environ
if "--libzstd-use-asm-bmi2" in sys.argv:
# Support assembler builtin optimization in lizstd
# Support assembler builtin optimization in lizstd for new AMD CPU
SUP_ASM_BMI2=False
sys.argv.remove("--libzstd-use-asm-bmi2")
ENABLE_ASM_BMI2=1
Expand Down

0 comments on commit a7ac0d8

Please sign in to comment.