-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pre Release (v3.9.0-beta.6): git_revision.cをどうにかする #82
Conversation
あとは |
え,S2E系のCIだけ落ちてる...まさか... |
ecc2537
to
13577d1
Compare
|
|
13577d1
to
a320840
Compare
conflictしてたのでrebase |
再rebase |
a320840
to
6c49026
Compare
あと微塵もLibraryではないし |
というか |
coreに |
というかそれなら |
いや |
6c49026
to
ad276ca
Compare
Examples/minimum_user_for_s2e/src/src_user/Script/git_revision.bat
Outdated
Show resolved
Hide resolved
あ,conflictしてるんでrebase |
05cbafc
to
742d94b
Compare
これなんで |
|
まあ |
descriptionを修正 |
073721c
to
6765b55
Compare
This comment was marked as resolved.
This comment was marked as resolved.
2nd obc とおなじものはこれに追記 \c2a-core\Examples\2nd_obc_user\sync_with_minimum_user.bat |
Examples/2nd_obc_user/src/src_user/Settings/git_revision_config.h
Outdated
Show resolved
Hide resolved
Examples/2nd_obc_user/src/src_user/Settings/git_revision_config.h
Outdated
Show resolved
Hide resolved
Examples/2nd_obc_user/src/src_user/Settings/git_revision_config.h
Outdated
Show resolved
Hide resolved
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.
おつ
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.
リリースするのでversion up コミットうってもらって
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.
おつ2
2年越しのマージ |
概要
git_revision.c
がトラッキングされていると,ビルドする度に無意味なdiffが発生する上誤ってcommitしてしまうことがある.そのため,
git_revision.c
を生成するのではなく,コンパイルオプションに渡してdefineすることでgit revisionを埋め込むようにする.Issue
NA
詳細
git_revision.c
はGIT_REVISION_C2A_CORE
のような定数を埋め込むだけにするgit_revision.h
をsrc_core/Library
に移したgit_revision.c
をc2a_core_main.c
内部に移した"0000000000000000000000000000000000000000"
などが入る検証結果
NA
影響範囲
詳しくはExample minimum userの
src_user/Settings/git_revision_config.h
を参照のこと.src/src_user/Library/git_revision.c
ではなくsrc/src_core/git_revision.c
を使うようにするadd_subdirectory()
するだけでOK(userのCMakeLists.txt
からgit_revision.c
を消せばいい)src_user/Settings/git_revision_config.h
でC2A_GIT_REVISION_FROM_OPTION
を定義するgit_revision.c
を自動生成していた環境Examples/minimum_user_for_s2e/src/src_user/Script/git_revision.bat
Examples/minimum_user_for_s2e/src/src_user/Script/Git/revision.bat
src_user/Settings/git_revision_config.h
でC2A_GIT_REVISION_IGNORE
をdefineする補足