Raise an informative error when running on macOS under Rosetta 2.
Current users only get a cryptic "Illegal instruction" crash. Context: https://github.com/deepmind/mujoco/issues/611 PiperOrigin-RevId: 491705647 Change-Id: I1285897a36e858300ee3d125957e90754be9a7f7
This commit is contained in:
committed by
Copybara-Service
parent
5f7d9f4f02
commit
df25d7d602
@@ -11,8 +11,8 @@ CXXFLAGS=$(CFLAGS) -std=c++17 -stdlib=libc++
|
||||
ALLFLAGS=$(CXXFLAGS) -L$(GLFWROOT)/lib -Wl,-rpath,$(MUJOCOPATH)
|
||||
|
||||
all:
|
||||
clang++ $(CXXFLAGS) -c macos_save.mm
|
||||
clang++ $(CXXFLAGS) -c macos_gui.mm
|
||||
clang++ $(CXXFLAGS) -c simulate.cc
|
||||
clang $(CFLAGS) -std=c11 -c uitools.c
|
||||
clang++ $(CXXFLAGS) main.cc macos_save.o simulate.o uitools.o -framework mujoco -framework Cocoa -lglfw -o simulate
|
||||
clang++ $(CXXFLAGS) main.cc macos_gui.o simulate.o uitools.o -framework mujoco -framework Cocoa -lglfw -o simulate
|
||||
rm *.o
|
||||
|
||||
Reference in New Issue
Block a user