Browse Source

Use g++ instead of gcc

development 1.0
Abheek Dhawan 3 years ago
parent
commit
c31fc3d0db
  1. 4
      .drone.yml
  2. 2
      build-linux.sh
  3. 2
      build-win.sh

4
.drone.yml

@ -10,8 +10,8 @@ steps:
- apt-get update - apt-get update
- apt-get upgrade -y - apt-get upgrade -y
- apt-get install zip -y - apt-get install zip -y
- apt-get install gcc-mingw-w64-x86-64 -y - apt-get install g++-mingw-w64-x86-64 -y
- apt-get install gcc -y - apt-get install g++ -y
- ./build-linux.sh - ./build-linux.sh
- ./build-win.sh - ./build-win.sh

2
build-linux.sh

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
gcc main.cpp -o modlimitfix -lstdc++ --std=c++17 g++ main.cpp -o modlimitfix --std=c++17

2
build-win.sh

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
# Use MINGW for cross-compilation # 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

Loading…
Cancel
Save