Skip to content

Commit ebeba0b

Browse files
committed
fix: skip verify/ directory when minifying bundled files
The verify/ directory contains test files with #line directives that get corrupted during minification (preprocessor directives get concatenated). Only minify the cp-algo/ library code from bundled files. This fixes the compilation errors where #define statements were being concatenated together, breaking the build.
1 parent 65acc3d commit ebeba0b

File tree

151 files changed

+5
-56980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+5
-56980
lines changed

.verify-helper/scripts/generate_minified.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ def main():
192192
processed_bundled = 0
193193

194194
for bundled_file in bundled_dir.rglob('*'):
195+
# Skip verify directory - these are test files with #line directives
196+
# that get corrupted during minification
197+
if 'verify' in bundled_file.parts:
198+
continue
199+
195200
if bundled_file.is_file() and bundled_file.suffix in ['.hpp', '.cpp', '.h']:
196201
total_bundled += 1
197202

cp-algo/min-bundled/cp-algo/geometry/closest_pair.hpp

Lines changed: 0 additions & 97 deletions
This file was deleted.

cp-algo/min-bundled/cp-algo/geometry/convex_hull.hpp

Lines changed: 0 additions & 84 deletions
This file was deleted.

cp-algo/min-bundled/cp-algo/geometry/point.hpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)