boostorg / boostorg/build

Cannot override positional-dependent options

オープン
#329 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
transition
主要言語
C++
スター
251
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

説明

With the change at https://github.com/boostorg/build/commit/61989801cab6a8f92969fcb82340a1e299e14e5e a (perhaps) unintended side effect is that options specified in a `project-config.jam` file are no longer listed last - so those options (`-fvisibility` for example) which are position-dependent (later ones override earlier ones), there is no longer a way to override.

This can be seen by looking at the compile commands for `boost::log` and `boost::serialization` if you specify `-fvisibility=default` in `project-config.jam`. Prior to this commit (and, rolling back this commit) will place the `-fvisibility=default` *after* `-fvisibility=hidden`. After this commit, the `-fvisibility=hidden` comes after, thus not providing a way to override the option.

I am attaching a [project-config.txt](https://github.com/boostorg/build/files/2276270/project-config.txt) file. Building `boost::log` with clang on macOS will demonstrate the issue.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。