Skip to content

Commit

Permalink
Only set install_name on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
w4 committed Jan 6, 2025
1 parent 6da5324 commit 507eaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammars.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ let
fi
$CC -c src/parser.c -o parser.o $FLAGS
$CXX -shared -install_name $out/$NAME.so -o $NAME.so *.o
$CXX -shared${lib.optionalString stdenv.isDarwin " -install_name $out/$NAME.so"} -o $NAME.so *.o
runHook postBuild
'';
Expand Down

0 comments on commit 507eaf4

Please sign in to comment.