Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ stages:
displayName: 'DXIL Tests'
- script: |
call utils\hct\hctstart.cmd %HLSL_SRC_DIR% %HLSL_BLD_DIR%
call utils\hct\hcttest.cmd -$(configuration) exec-warp
displayName: 'DXIL Execution Tests (Nuget WARP)'
call utils\hct\hcttest.cmd -$(configuration) exec
displayName: 'DXIL Execution Tests'

- job: Nix
timeoutInMinutes: 120
Expand Down
24 changes: 24 additions & 0 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,35 @@ function(set_output_directory target bindir libdir)
set(moddir ${libdir})
endif()
if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
# HLSL change begin: work around broken MSVC_BUILD_AS_X
get_target_property(target_type ${target} TYPE)
if(target_type STREQUAL "SHARED_LIBRARY" AND MSVC_BUILD_AS_X EQUAL 1)
set(arm64x_workaround 1)
message(NOTICE "Working around ARM64X / MSVC_BUILD_AS_X bug for ${target}")
else()
set(arm64x_workaround 0)
endif()
# HLSL change end

foreach(build_mode ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${build_mode}" CONFIG_SUFFIX)
string(REPLACE ${CMAKE_CFG_INTDIR} ${build_mode} bi ${bindir})
string(REPLACE ${CMAKE_CFG_INTDIR} ${build_mode} li ${libdir})
string(REPLACE ${CMAKE_CFG_INTDIR} ${build_mode} mi ${moddir})

# HLSL change begin: work around broken MSVC_BUILD_AS_X
#
# MSVC_BUILD_AS_X generates a vcxproj that builds for both ARM64 and
# ARM64EC, but these two platforms are only visible in msbuild. It also
# currently configures the import libraries to all be output to the same
# location, which means it's a race for if we get the ARM64 or ARM64X
# version there. The appended $(PLATFORM) is evaluated by msbuild at
# build time to separate the ARM64EC from ARM64 builds.
if(arm64x_workaround EQUAL 1)
string(APPEND li "/$(PLATFORM)")
endif()
# HLSL change end

set_target_properties(${target} PROPERTIES "RUNTIME_OUTPUT_DIRECTORY_${CONFIG_SUFFIX}" ${bi})
set_target_properties(${target} PROPERTIES "ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_SUFFIX}" ${li})
set_target_properties(${target} PROPERTIES "LIBRARY_OUTPUT_DIRECTORY_${CONFIG_SUFFIX}" ${mi})
Expand Down
233 changes: 0 additions & 233 deletions cmake/modules/Nuget.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion include/dxc/DxilValidation/DxilValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class PrintDiagnosticContext {
bool HasWarnings() const;
void Handle(const llvm::DiagnosticInfo &DI);

static void PrintDiagnosticHandler(const llvm::DiagnosticInfo &DI,
static void PrintDiagnosticHandler(const llvm::DiagnosticInfo *DI,
void *Context);
};

Expand Down
Loading