Scripts: move intermediate file into intermediate dir #5981
|
@dotnet-bot Test Ubuntu x64 Checked Build and Test Please |
|
Now, it works in Windows as well as Linux. |
|
@dotnet-bot Test Ubuntu x64 Checked Build and Test Please |
|
@dotnet-bot Test Ubuntu x64 Checked Build and Test Please |
| @@ -1,11 +1,11 @@ | ||
| get_directory_property( DirDefs COMPILE_DEFINITIONS ) | ||
| # Reset the definition file | ||
| -file(WRITE cmake.definitions "") | ||
| +file(WRITE $ENV{__IntermediatesDir}/cmake.definitions "") |
|
janvorli
Could you please use ${CMAKE_CURRENT_BINARY_DIR} instead of the $ENV{__IntermediatesDir}? I would prefer to not to use env variables in the cmake scripts to communicate information between the build.sh and cmake scripts.
myungjoo
Alright. And for the problem of Windows build you've mentioned with #4675, would it be ok to make the script ignore file-not-found and smoothly move on afterwards? |
|
The recent modification includes:
|
|
I think this code has nothing to do with:
|
|
@dotnet-bot Test Ubuntu x64 Checked Build and Test Please |
The intermediate file, cmake.definitions, is moved into
the intermediate directory: bin/obj/OS.Arch.Conf/
Fixes #5976
Signed-off-by: MyungJoo Ham [email protected]