This repository was archived by the owner on Jan 6, 2025. It is now read-only.
Commit 6783052
committed
CMake: add target generate_syscall_intercept_scoped
In intermediary target to fix parallel builds. Two
targets depend on syscall_intercept_scoped.o, and apparently
in parallel builds CMake often executed the commands twice, which
sometimes resulted in a failing builds.
An example of such build failure:
```
[ 83%] Built target syscall_intercept_unscoped
[ 83%] Hiding symbols
[ 84%] Hiding symbols
/usr/bin/objcopy: error: the input file 'syscall_intercept_scoped.o' is empty
CMakeFiles/syscall_intercept_static.dir/build.make:61: recipe for target 'syscall_intercept_scoped.o' failed
make[2]: *** [syscall_intercept_scoped.o] Error 1
```
Adding a custom_target hopefully makes things better.
See also:
https://cmake.org/Bug/view.php?id=100821 parent 6fbb015 commit 6783052
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
| |||
0 commit comments