From c31fc3d0dbdb635be68b562de78a87295aecbef1 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Tue, 28 Dec 2021 13:54:00 -0600 Subject: [PATCH] Use g++ instead of gcc --- .drone.yml | 4 ++-- build-linux.sh | 2 +- build-win.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 31853c2..3b4c6a7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,8 +10,8 @@ steps: - apt-get update - apt-get upgrade -y - apt-get install zip -y - - apt-get install gcc-mingw-w64-x86-64 -y - - apt-get install gcc -y + - apt-get install g++-mingw-w64-x86-64 -y + - apt-get install g++ -y - ./build-linux.sh - ./build-win.sh diff --git a/build-linux.sh b/build-linux.sh index 17b2cdb..047ed3d 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -1,2 +1,2 @@ #!/bin/bash -gcc main.cpp -o modlimitfix -lstdc++ --std=c++17 +g++ main.cpp -o modlimitfix --std=c++17 diff --git a/build-win.sh b/build-win.sh index 5d79daf..b65af07 100755 --- a/build-win.sh +++ b/build-win.sh @@ -1,3 +1,3 @@ #!/bin/bash # Use MINGW for cross-compilation -x86_64-w64-mingw32-gcc-win32 main.cpp modlimitfix.res -lstdc++ -std=c++17 +x86_64-w64-mingw32-g++-win32 main.cpp modlimitfix.res -std=c++17