Skip to content

CheckVersion was not properly casting integers to strings#6

Open
richardxia wants to merge 1 commit into
bryancatanzaro:masterfrom
richardxia:master
Open

CheckVersion was not properly casting integers to strings#6
richardxia wants to merge 1 commit into
bryancatanzaro:masterfrom
richardxia:master

Conversation

@richardxia

Copy link
Copy Markdown

In SConstruct, the CheckVersion() method was blindly comparing the parsed version number (as strings) with the required version number (always given as a tuple of integers) and would return true even if the version number was smaller than the required version. I cast the required tuple into an array of strings so that the comparison works as intended.

In addition, I added a check in the autoconf() method which raises an error if the g++ version is too low.

Properly casted integers to strings in the version check.
Raise error if g++ version is too old
@bryancatanzaro

Copy link
Copy Markdown
Owner

Thanks for reporting this. I may have already fixed it in this commit (which I haven't pushed to the main repository yet). Could you pull from this commit and see if it fixed the issue?
9bf345e#SConstruct

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