|
@@ -53,7 +53,10 @@ compile_args = [
|
|
]
|
|
]
|
|
if debug:
|
|
if debug:
|
|
print("Compiling with debug flags.")
|
|
print("Compiling with debug flags.")
|
|
- compile_args.extend(["-DDEBUG", "-g3", "-O1"])
|
|
|
|
|
|
+ compile_args.extend([
|
|
|
|
+ "-UNDEBUG", "-U_FORTIFY_SOURCE",
|
|
|
|
+ "-DDEBUG", "-g3", "-O0"
|
|
|
|
+ ])
|
|
else:
|
|
else:
|
|
compile_args.extend(["-g0", "-O3"])
|
|
compile_args.extend(["-g0", "-O3"])
|
|
|
|
|
|
@@ -71,7 +74,8 @@ class LSUPInstallCmd(install):
|
|
|
|
|
|
def run(self):
|
|
def run(self):
|
|
print("Generating parsers.")
|
|
print("Generating parsers.")
|
|
- target = "debug" if debug else "codec_dbg"
|
|
|
|
|
|
+ target = "codec_dbg" if debug else "codec"
|
|
|
|
+ print(f"Making {target}.")
|
|
check_output(["make", target])
|
|
check_output(["make", target])
|
|
|
|
|
|
install.run(self)
|
|
install.run(self)
|
|
@@ -89,7 +93,7 @@ setup(
|
|
package_dir={"": "."},
|
|
package_dir={"": "."},
|
|
packages=find_packages(where="."),
|
|
packages=find_packages(where="."),
|
|
include_package_data=True,
|
|
include_package_data=True,
|
|
- cmdclass={"install": LSUPInstallCmd},
|
|
|
|
|
|
+ # cmdclass={"install": LSUPInstallCmd},
|
|
classifiers=[
|
|
classifiers=[
|
|
"Development Status :: 3 - Alpha",
|
|
"Development Status :: 3 - Alpha",
|
|
"Environment :: Console",
|
|
"Environment :: Console",
|