Skip to content

Commit

Permalink
opt-alive.sh --verbose to stderr, hints on building with Xcode (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashSheridan authored Feb 7, 2024
1 parent 3ded335 commit 77af924
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ LLVM can be built in the following way.
* `BUILD_SHARED_LIBS` may not be necessary, and for LLVM forks not normally
built with the option, may interfere with CMake files’ use of `USEDLIBS` and
`LLVMLIBS`, and perhaps `dd_llvm_target`.
* To build with Xcode rather than Ninja, replace `-GNinja` with `-GXcode` in
the `cmake` step below, and append `-DLLVM_MAIN_SRC_DIR=$LLVM2_HOME/llvm`.
* It may be necessary to disable warnings for “Implicit Conversion to 32 Bit
Type” in the project build settings.
* Xcode may place `tv.dylib` in a different location; a symbolic link from the
actual location to that in the resultant error message may help.

```
cd $LLVM2_HOME
Expand Down
4 changes: 2 additions & 2 deletions scripts/opt-alive.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ fi
COMMAND="$TIMEOUT @LLVM_BINARY_DIR@/bin/opt -load=@CMAKE_BINARY_DIR@/tv/$TV_SHAREDLIB $NPM_PLUGIN -tv-exit-on-error $TV $OPT_ARGS $TV $TV_SMT_TO $TV_REPORT_DIR $TV_SMT_STATS"

if [[ $VERBOSE == 1 ]]; then
echo COMMAND: $COMMAND
echo
echo COMMAND: $COMMAND >&2
echo >&2
fi

$COMMAND

0 comments on commit 77af924

Please sign in to comment.