Files
Sergei Trofimovich de5759ecbc cvise: fix unifdef.patch (crashes otherwise)
Without the change `cvise` does not even parse:

    $ cvise --help |& unnix
      File "/<<NIX>>/cvise-2.12.0/bin/.cvise-wrapped", line 96
        programs['unifdef'] = '/<<NIX>>/unifdef-2.12/bin/unifdef'
        ^^^^^^^^
    SyntaxError: expected 'except' or 'finally' block

Happens because the patch applies to the unrelated bit of the source.

While at it added minimal `cvise --help` test.
2025-10-16 20:55:38 +01:00

10 lines
279 B
Diff

--- a/cvise/utils/externalprograms.py
+++ b/cvise/utils/externalprograms.py
@@ -43,5 +43,6 @@ def find_external_programs():
# Special case for clang-format
programs['clang-format'] = '@CLANG_FORMAT_PATH@'
+ programs['unifdef'] = '@UNIFDEF@'
return programs