Skip to content

build.sh: check correct compiler#2

Open
hcmh wants to merge 1 commit intoVLOGroup:masterfrom
hcmh:build_sh_compiler
Open

build.sh: check correct compiler#2
hcmh wants to merge 1 commit intoVLOGroup:masterfrom
hcmh:build_sh_compiler

Conversation

@hcmh
Copy link

@hcmh hcmh commented Jun 26, 2018

Previously, build.sh checkd the version of gcc, picking whichever
version of gcc comes first in a user's PATH. However,
tf_exports.sh also allows setting a specific gcc path through the
GCC_HOST_COMPILER_PATH variable.

This commit changes build.sh to check the version of that compiler,
instead of relying on gcc in the user's PATH.

For me, for example, this resulted in a build failure, since i had selected gcc-4.9 in GCC_HOST_COMPILER_PATH, while my gcc is version 6.3. After this change, I was able to build it successfully.

Best regards,
Christian

Previously, build.sh checkd the version of `gcc`, picking whichever
version of `gcc` comes first in a user's `PATH`. However,
`tf_exports.sh` also allows setting a specific `gcc` path through the
`GCC_HOST_COMPILER_PATH` variable.

This commit changes `build.sh` to check the version of that compiler,
instead of relying on `gcc` in the user's `PATH`.
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.

1 participant