Skip to content

Commit

Permalink
Remove fsanitize in weak flags (#178)
Browse files Browse the repository at this point in the history
* Remove fsanitize with weak compilation flags

* Bump version
  • Loading branch information
MasloMaslane authored Feb 10, 2024
1 parent 0d55a9e commit 8a26ac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sinol_make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sinol_make import util, oiejq


__version__ = "1.5.21"
__version__ = "1.5.22"


def configure_parsers():
Expand Down
4 changes: 2 additions & 2 deletions src/sinol_make/helpers/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ def compile(program, output, compilers: Compilers = None, compile_log = None, we
arguments = [compilers.cpp_compiler_path or compiler.get_cpp_compiler_path(), program] + \
extra_compilation_args + ['-o', output] + \
f'--std=c++20 -O3 -lm{gcc_compilation_flags} -fdiagnostics-color'.split(' ')
if use_fsanitize:
if use_fsanitize and not weak_compilation_flags:
arguments += ['-fsanitize=address,undefined', '-fno-sanitize-recover']
elif ext == '.c':
arguments = [compilers.c_compiler_path or compiler.get_c_compiler_path(), program] + \
extra_compilation_args + ['-o', output] + \
f'--std=gnu99 -O3 -lm{gcc_compilation_flags} -fdiagnostics-color'.split(' ')
if use_fsanitize:
if use_fsanitize and not weak_compilation_flags:
arguments += ['-fsanitize=address,undefined', '-fno-sanitize-recover']
elif ext == '.py':
if sys.platform == 'win32' or sys.platform == 'cygwin':
Expand Down

0 comments on commit 8a26ac8

Please sign in to comment.