Commit a33f9c8
authored
[Driver][SYCL] Improve -lname static linking with shared objects (#5790)
By default, the expectation for linking is dynamic. Abide by these
rules when processing library files for fat static archives.
For example: clang++ -fsycl -lname
This should only attempt to unbundle libname.a when there is no libname.so
found. Exception being when we are forcing static linking with options
such as -static and -Wl,-Bstatic.1 parent 28ada78 commit a33f9c8
File tree
2 files changed
+35
-3
lines changed- clang
- lib/Driver
- test/Driver
2 files changed
+35
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3013 | 3013 | | |
3014 | 3014 | | |
3015 | 3015 | | |
3016 | | - | |
| 3016 | + | |
3017 | 3017 | | |
3018 | 3018 | | |
3019 | 3019 | | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
3020 | 3029 | | |
3021 | 3030 | | |
3022 | 3031 | | |
| |||
3029 | 3038 | | |
3030 | 3039 | | |
3031 | 3040 | | |
| 3041 | + | |
3032 | 3042 | | |
3033 | 3043 | | |
3034 | 3044 | | |
| |||
3088 | 3098 | | |
3089 | 3099 | | |
3090 | 3100 | | |
3091 | | - | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
3092 | 3115 | | |
3093 | 3116 | | |
3094 | 3117 | | |
| |||
3128 | 3151 | | |
3129 | 3152 | | |
3130 | 3153 | | |
3131 | | - | |
| 3154 | + | |
3132 | 3155 | | |
3133 | 3156 | | |
3134 | 3157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
| |||
0 commit comments