Skip to content

Commit

Permalink
More compiler manipulations for arguments on Darwin build.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Oct 10, 2024
1 parent 9278d4e commit 8a8c98c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
# Copyright (c) 2024 - Nathanne Isip
# This file is part of Zhivo.
#
# Zhivo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# Zhivo is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Zhivo. If not, see <https://www.gnu.org/licenses/>.

import os
import platform
import subprocess
import sys

PLATFORM = platform.system()
COMPILER = 'g++'
OUT_DIR = 'dist'
OUTPUT_EXECUTABLE = os.path.join(
'dist',
'zhivo-' +
sys.platform + '-' +
platform.machine().lower()
)
PLATFORM = platform.system()
COMPILER = 'g++'

cpp_files = []
for root, dirs, files in os.walk('src'):
Expand Down Expand Up @@ -58,6 +74,7 @@
if PLATFORM == 'Darwin':
gpp_command.append('-Xpreprocessor')
gpp_command.append('-O3')
gpp_command.append('-Wno-header-guard')
gpp_command.remove('-Wunsafe-loop-optimizations')
gpp_command.remove('-Wvolatile-register-var')
gpp_command.remove('-Weffc++')
Expand Down

0 comments on commit 8a8c98c

Please sign in to comment.