Skip to content

Use __FILE_NAME__ instead of __FILE__ #176

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

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

tatsuhiro-t
Copy link
Member

Use FILE_NAME instead of FILE not to include a full source file path.

Use __FILE_NAME__ instead of __FILE__ not to include a full source
file path.
@tatsuhiro-t tatsuhiro-t added this to the v1.1.0 milestone Nov 3, 2023
@tatsuhiro-t tatsuhiro-t merged commit 71bf1ef into main Nov 3, 2023
@tatsuhiro-t tatsuhiro-t deleted the unreachable-basename branch November 3, 2023 08:53
vszakats added a commit to curl/curl-for-win that referenced this pull request Nov 3, 2023
Having this in `_build.sh` isn't correct because it leaves the project
subdir included in `__FILE__` values, while in autotools builds this
is missing, creating a slight difference in binaries built with
cmake vs autotools.

Also, these now received a fix in both ngtcp2 and nghttp3, and we now
have detection in place for this issue. BoringSSL also had a local fix
that I missed in the previous commits. Make this setting pre-project
again.

Follow-up to efef82c
Follow-up to c29fb63

Refs:
ngtcp2/ngtcp2#1003
ngtcp2/ngtcp2#1006
ngtcp2/ngtcp2@2822c7f

ngtcp2/nghttp3#176
ngtcp2/nghttp3@71bf1ef
vszakats added a commit to curl/curl-for-win that referenced this pull request Nov 3, 2023
Having this in `_build.sh` isn't correct because it leaves the project
subdir included in `__FILE__` values, while in autotools builds this
is missing, creating a slight difference in binaries built with
cmake vs autotools.

Also, these now received a fix in both ngtcp2 and nghttp3, and we now
have detection in place for this issue. BoringSSL also had a local fix
that I missed in the previous commits. Previous patch also left `CFLAGS`
uninitialized in `libressl-cmake.sh`.

Make this setting pre-project again.

Follow-up to c29fb63

Refs:
ngtcp2/ngtcp2#1003
ngtcp2/ngtcp2#1006
ngtcp2/ngtcp2@2822c7f

ngtcp2/nghttp3#176
ngtcp2/nghttp3@71bf1ef
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

Successfully merging this pull request may close these issues.

1 participant