-
Notifications
You must be signed in to change notification settings - Fork 216
[WIP, RFC] Use relative paths for __FILE__
#1861
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -20,8 +20,23 @@ source: | |||||||||||||||||
build: | ||||||||||||||||||
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }} | ||||||||||||||||||
script: | ||||||||||||||||||
content: | ||||||||||||||||||
- ./build.sh -v clean rmm --cmake-args=\"-DCMAKE_INSTALL_LIBDIR=lib\" | ||||||||||||||||||
content: | | ||||||||||||||||||
# Remove `-fdebug-prefix-map` line from CFLAGS and CXXFLAGS so the | ||||||||||||||||||
# incrementing version number in the compile line doesn't break the | ||||||||||||||||||
# cache | ||||||||||||||||||
set -x | ||||||||||||||||||
export CFLAGS=$(echo $CFLAGS | sed -E 's@\-fdebug\-prefix\-map[^ ]*@@g') | ||||||||||||||||||
export CXXFLAGS=$(echo $CXXFLAGS | sed -E 's@\-fdebug\-prefix\-map[^ ]*@@g') | ||||||||||||||||||
set +x | ||||||||||||||||||
Comment on lines
+24
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have copied the stripping of the existing rmm/conda/recipes/librmm/recipe.yaml Lines 21 to 28 in f87d7a6
We would want this in both builds for the same reasons |
||||||||||||||||||
|
||||||||||||||||||
# Use relative paths for `__FILE__` by passing `-fmacro-prefix-map` | ||||||||||||||||||
# https://gcc.gnu.org/onlinedocs/gcc-13.3.0/gcc/Preprocessor-Options.html#index-fmacro-prefix-map | ||||||||||||||||||
set -x | ||||||||||||||||||
export CFLAGS="${CFLAGS} -fmacro-prefix-map=$(pwd)/=''" | ||||||||||||||||||
export CXXFLAGS="${CXXFLAGS} -fmacro-prefix-map=$(pwd)/=''" | ||||||||||||||||||
set +x | ||||||||||||||||||
Comment on lines
+32
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As A couple things we may want to consider:
Beyond fixing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like this approach. I would consider merging this as-is, and doing (1) or (2) as follow-up work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also support this approach here. I think this is a good idea. I suggest that we try and put this into rapids-cmake so that we get this for free in all our libraries. The main challenge I see with that is identifying the appropriate root path to use. I agree with Bradley that I'm OK with doing that as a follow-up if you want to get this PR merged sooner. I can open a suitable rapids-cmake issue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened rapidsai/rapids-cmake#798 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tried to describe what this would look like in the context of Though am sure it can be improved further. Please feel free to suggest there |
||||||||||||||||||
|
||||||||||||||||||
./build.sh -v clean rmm --cmake-args=\"-DCMAKE_INSTALL_LIBDIR=lib\" | ||||||||||||||||||
secrets: | ||||||||||||||||||
- AWS_ACCESS_KEY_ID | ||||||||||||||||||
- AWS_SECRET_ACCESS_KEY | ||||||||||||||||||
|
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.
We should also export this in CUDAFLAGS I expect.
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.
Agreed. Tried to capture a better recommendation here: rapidsai/rapids-cmake#798 (comment)
Please feel free to suggest further improvements