Skip to content

Commit

Permalink
Add ASan configuration, to enable by uncommenting for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
npjg committed Jul 24, 2024
1 parent 9ae4ad5 commit 1e9fbd1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# For development work, looks like you would use this to compile the
# C-based image decompressor:
# python3 setup.py build_ext --inplace
bitmap_decompression = Extension(name = 'MediaStationBitmapRle', sources = ['src/MediaStation/Assets/BitmapRle.c'])
bitmap_decompression = Extension(
name = 'MediaStationBitmapRle',
sources = ['src/MediaStation/Assets/BitmapRle.c'],
# TODO: Create a separate build type for ASan?
# If you want to use Address Sanitizer (ASan), you can enable these temporarily.
# extra_compile_args = ['-fsanitize=address', '-O1', '-fno-omit-frame-pointer', '-g'],
# extra_link_args=['-fsanitize=address']
)
ima_adpcm_decompression = Extension(name = 'MediaStationImaAdpcm', sources = ['src/MediaStation/Assets/ImaAdpcm.c'])
try:
# TRY TO COMPILE THE C-BASED IMAGE DECOMPRESSOR.
Expand Down

0 comments on commit 1e9fbd1

Please sign in to comment.