Skip to content

Replace the build script with gcc-14 for Unix #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cozkul
Copy link

@cozkul cozkul commented Mar 17, 2025

Hi @daveight, you'd need to get compiler binaries with brew install gcc@14 and place binaries in vendor/libs/cpp for release. If you do not have brew you can see available alternatives here: https://gcc.gnu.org/install/binaries.html

@@ -45,7 +45,7 @@ def get_compile_cmd(self, src_file: SrcFile, resource_path: str, is_win: bool) -
f'-I {resource_path} -liconv -static -std=c++11 -o {src_file.file.name}.run'
else:
return f'export CPATH={resource_path}/{LIBS_FOLDER}/cpp/headers:{resource_path} &&' + \
f'{resource_path}/{LIBS_FOLDER}/cpp/bin/clang++ -Werror=return-type -std=c++14 -pedantic ' + \
f'{resource_path}/{LIBS_FOLDER}/cpp/bin/gcc-14 -Werror=return-type -std=c++20 -pedantic ' + \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cozkul thanks for the PR, I followed your instructions and managed to get it working.

Could you check if this command below is correct and if yes - adjust your PR?

return f'{resource_path}/{LIBS_FOLDER}/cpp/bin/c++-14 ' + \
           f'-I {resource_path} {libs_path}/*.cpp {src_file.file.name} -o {src_file.file.name}.run'

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants