-
Notifications
You must be signed in to change notification settings - Fork 686
Allow external builds to use non-gnu compilers #955
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
Allow external builds to use non-gnu compilers #955
Conversation
| set(CMAKE_SYSTEM_PROCESSOR "${EXTERNAL_CMAKE_SYSTEM_PROCESSOR}") | ||
|
|
||
| CMAKE_FORCE_C_COMPILER(${EXTERNAL_CMAKE_C_COMPILER} GNU) | ||
| CMAKE_FORCE_C_COMPILER(${EXTERNAL_CMAKE_C_COMPILER} ${EXTERNAL_CMAKE_C_COMPILER_FAMILY}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the second parameter of CMAKE_FORCE_C_COMPILER is called < compiler-id > and sets the CMAKE_C_COMPILER_ID cmake internal variable. Thus, it is preferrable to call the external variant EXTERNAL_CMAKE_C_COMPILER_ID (instead of _FAMILY).
Moreover, the introduction of this new variable breaks all the current ports that use this external cmake file, since the Makefiles under the targets/ directory don't specify value for EXTERNAL_CMAKE_C_COMPILER_ID. Please, update those files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion! I'm still learning my way around cmake. Changed!
a1047d1 to
3858bad
Compare
|
LGTM (FWIW) |
|
LGTM |
1 similar comment
|
LGTM |
3858bad to
2daaa7d
Compare
|
rebased |
|
Let's do one more round of rebasing. (By landing #944, master moved one patch ahead of this.) |
JerryScript-DCO-1.0-Signed-off-by: François Baldassari francois@pebble.com
2daaa7d to
05e7a83
Compare
|
done |
JerryScript-DCO-1.0-Signed-off-by: François Baldassari francois@pebble.com