forked from oneapi-src/SYCLomatic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCLomatic] Emit error message and fixing steps for users when "cmak…
…e -E make_directory" called in "intercept-build make" (oneapi-src#1391) Signed-off-by: chenwei.sun <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
project(foo) | ||
|
||
add_executable(foo foo.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
program = main | ||
|
||
|
||
main: foo.cpp | ||
mkdir -p build | ||
cd build && cmake .. && make | ||
|
||
clean: | ||
rm -rf build foo.o | ||
|
||
run: $(program) | ||
./$(program) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// UNSUPPORTED: system-windows | ||
// intercept-build only supports Linux | ||
// | ||
// ------ prepare test directory | ||
// RUN: cd %T | ||
// RUN: cp %s foo.cpp | ||
// RUN: cp %S/Makefile ./Makefile | ||
// RUN: cp %S/CMakeLists.txt ./CMakeLists.txt | ||
// RUN: not intercept-build make > intercept_log.txt 2>&1 || true | ||
// RUN: not grep "cmake is called to generate project build" ./intercept_log.txt | ||
#include <iostream> | ||
|
||
int main() { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters