Skip to content
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

c++のリンカオプションに対応してほしい #421

Open
ZOI-dayo opened this issue Oct 13, 2023 · 0 comments
Open

c++のリンカオプションに対応してほしい #421

ZOI-dayo opened this issue Oct 13, 2023 · 0 comments

Comments

@ZOI-dayo
Copy link

Description / 説明

現在、コンフィグでCXXCXXFLAGSが設定できるようになっており、実行時にCXX CXXFLAGS -I -o **.cpp の順で結合されることになっています。

command = [str(self.CXX), *self.CXXFLAGS, '-I', str(basedir), '-o', str(tempdir / 'a.out'), str(path)]

しかし、g++では、コンパイラオプション(-L/usr/local/lib-lm-lgmp等)は最後に置かなければならないようです。(参考ページ)

この配置はCXXFLAGSオプションだけでは実現できません。このような配置が可能なようにできませんでしょうか。
(LDLIBSのようなオプションの追加など)

Motivation / 動機

AtCoderのアップデートにより、C++でGMPが利用可能になったようなので、これを利用してみようと思いました。(言語アップデート情報)

Other notes / その他

  • Will you try to create a pull request?
    • no
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

No branches or pull requests

1 participant