(tree, python, source, out, keep_static)
| 139 | |
| 140 | |
| 141 | def build_object(tree, python, source, out, keep_static): |
| 142 | flags = list(CFLAGS) |
| 143 | if keep_static: |
| 144 | flags.append("-fkeep-static-functions") |
| 145 | # The package directory is on the include path so that a --probe file |
| 146 | # kept outside the tree can still say #include "_multilib/....h". |
| 147 | gcc( |
| 148 | [ |
| 149 | *flags, |
| 150 | "-I", |
| 151 | include_dir(python), |
| 152 | "-I", |
| 153 | tree, |
| 154 | "-I", |
| 155 | Path(tree) / "multidict", |
| 156 | source, |
| 157 | "-o", |
| 158 | out, |
| 159 | ], |
| 160 | cwd=tree, |
| 161 | ) |
| 162 | |
| 163 | |
| 164 | def disassemble(obj): |
no test coverage detected