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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pylib/anki/testing/framework/cpp/cpp_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!

f'{libs_path}/*.cpp {src_file.file.name} -o {src_file.file.name}.run'

def get_error_message(self, error: str, file_name: str, code_offset: int) -> str:
Expand Down