Skip to content

Commit

Permalink
disable regs
Browse files Browse the repository at this point in the history
  • Loading branch information
4tXJ7f committed May 13, 2022
1 parent 8e2dbb4 commit 169d3bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/FindANTLR3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ if(NOT ANTLR3_FOUND_SYSTEM)

set(compilers "")
if (CMAKE_CROSSCOMPILING_MACOS)
set(compilers "CC=${CMAKE_C_COMPILER} -arch ${CMAKE_OSX_ARCHITECTURES}" "CXX=${CMAKE_CXX_COMPILER} -arch ${CMAKE_OSX_ARCHITECTURES}")
# We set the CC and CXX flags as suggested in
# https://github.com/antlr/antlr3/blob/5c2a916a10139cdb5c7c8851ee592ed9c3b3d4ff/runtime/C/INSTALL#L133-L135.
set(compilers
"CC=${CMAKE_C_COMPILER} -arch ${CMAKE_OSX_ARCHITECTURES}"
"CXX=${CMAKE_CXX_COMPILER} -arch ${CMAKE_OSX_ARCHITECTURES}")
endif()

# Download, build and install antlr3 runtime
Expand Down

0 comments on commit 169d3bb

Please sign in to comment.