Skip to content

Commit

Permalink
Added compile command JSON shell script fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorewf committed Jun 21, 2023
1 parent 619deb3 commit d4aeb8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions M2/Macaulay2/e/util/fixCompileCommandsJSON.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#! /bin/zsh
# This script should be ran in the M2 directory as ./Macaulay2/e/util/fixCompileCommandsJSON.sh
sed 's;-Xclang;;' /Users/frank/Macaulay2/M2-frank/M2/BUILD/frank/builds.tmp/cmake-appleclang/compile_commands.json > temp.json
sed 's;-Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib;;' temp.json > compile_commands.json
rm temp.json

0 comments on commit d4aeb8a

Please sign in to comment.