-
Notifications
You must be signed in to change notification settings - Fork 57
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
oj-bundle with multiple include path #298
Comments
自分のライブラリと atcoder/ac-library とを同時に使いたい、みたいな動機でしょうか。これができるようになってよろこぶ人は多そうで、対応やってくれるならありがたいです。
「クラス 'Language' とその派生クラスのメソッド 'bundle' のシグニチャを変更する」のはよさそうです。しかし 'basedir' の型を 'List[pathlib.Path]' にするのはすこし不具合がありそうで、 想定される不具合:
その他の選択肢:
|
ありがとうございます。設計の理解が不十分な提案で申し訳なかったです。
ある程度汎用性、柔軟性がありそうなこの形をとろうと思います。
全ての特殊化を確認せずに言ってしまっていたのですが、 'other.py' を見てこれがマズそうなことに気づきました。意味論的にもおかしいですし、そもそも Not Implemented な言語を無視するのも将来性を考えるとおかしいですね、、
C++ 特有の概念だという認識を持っていませんでした。なるほど納得です。 |
最後に '-I' で指定したパスのみがコンパイルオプションで include path として渡されています(例えば引数を ['-I', '/path/to/Library1', '-I', '/path/to/Library2'] と渡すと、Library1 にパスが通らず Library2 には通る)。
verification-helper/onlinejudge_bundle/main.py
Line 24 in a4eb223
クラス 'Language' とその派生クラスのメソッド 'bundle' のシグニチャを変更する('basedir' の型を 'List[pathlib.Path]' にする)ことで対応しようと考えています。それによって生じると想定される不具合や、より良い対応などあれば教えて頂きたいです。
The text was updated successfully, but these errors were encountered: