all: add -O2 to compiler args

This commit is contained in:
Vaxry 2023-11-04 00:48:52 +00:00
parent 87955bceb1
commit 0a562ab2c4
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
all:
$(CXX) -shared -fPIC --no-gnu-unique main.cpp borderDeco.cpp -o borders-plus-plus.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b
$(CXX) -shared -fPIC --no-gnu-unique main.cpp borderDeco.cpp -o borders-plus-plus.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b -O2
clean:
rm ./borders-plus-plus.so

View File

@ -1,4 +1,4 @@
all:
$(CXX) -shared -fPIC --no-gnu-unique main.cpp -o csgo-vulkan-fix.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b
$(CXX) -shared -fPIC --no-gnu-unique main.cpp -o csgo-vulkan-fix.so -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b -O2
clean:
rm ./csgo-vulkan-fix.so

View File

@ -8,7 +8,7 @@ TARGET = hyprbars.so
all: $(TARGET)
$(TARGET): $(SRC)
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ $> -o $@ $(LIBS)
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ $> -o $@ $(LIBS) -O2
clean:
rm ./$(TARGET)