diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-06-30 00:09:02 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-06-30 00:09:02 +0200 |
| commit | bbead404341de0db027b32fe2b161c0194420c08 (patch) | |
| tree | e6712d4b0466d36ae727695b70003e5aebef3218 /src_doit/c.py | |
| parent | bbd20d9104a3bd138ad72e5badcf50bfe6acc1a9 (diff) | |
WIP native implementation
Diffstat (limited to 'src_doit/c.py')
| -rw-r--r-- | src_doit/c.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src_doit/c.py b/src_doit/c.py index bd9fd74..36257f6 100644 --- a/src_doit/c.py +++ b/src_doit/c.py @@ -21,10 +21,13 @@ platforms = [common.local_platform] if common.local_platform == common.Platform.LINUX_X86_64: platforms.append(common.Platform.WINDOWS_AMD64) +cc_flags = ['-fPIC', '-O2'] +# cc_flags = ['-fPIC', '-O0', '-ggdb'] + builds = [CBuild(src_paths=[*src_c_dir.rglob('*.c')], build_dir=build_c_dir / platform.name.lower(), platform=platform, - cc_flags=['-fPIC', '-O2']) + cc_flags=cc_flags) for platform in platforms] lib_paths = [src_py_dir / (f'opcut/_libopcut{get_lib_suffix(platform)}') |
