Skip to content

Commit f751ad4

Browse files
committed
Cleanup MSVC arguments in defs.bzl
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
1 parent 3cefe05 commit f751ad4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|i386|i686")
225225

226226
message(STATUS "Processor is ${CMAKE_SYSTEM_PROCESSOR}; will build AVX2 target")
227227

228-
get_filelist("get_fbgemm_avx2_srcs(msvc=${MSVC_BOOL})" FBGEMM_AVX2_SRCS)
228+
get_filelist("get_fbgemm_avx2_srcs()" FBGEMM_AVX2_SRCS)
229229
get_filelist("get_fbgemm_inline_avx2_srcs(msvc=${MSVC_BOOL})" FBGEMM_AVX2_INLINE_SRCS)
230230

231231
cpp_library(
@@ -259,7 +259,7 @@ endif()
259259
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64|i386|i686" AND CXX_AVX512_FOUND)
260260
message(STATUS "Processor is ${CMAKE_SYSTEM_PROCESSOR}; will build AVX512 target")
261261

262-
get_filelist("get_fbgemm_avx512_srcs(msvc=${MSVC_BOOL})" FBGEMM_AVX512_SRCS)
262+
get_filelist("get_fbgemm_avx512_srcs()" FBGEMM_AVX512_SRCS)
263263
get_filelist("get_fbgemm_inline_avx512_srcs(msvc=${MSVC_BOOL})" FBGEMM_AVX512_INLINE_SRCS)
264264

265265
cpp_library(

defs.bzl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ def get_fbgemm_public_headers():
116116
"include/fbgemm/Types.h",
117117
]
118118

119-
# buildifier: disable=unused-variable
120-
def get_fbgemm_avx2_srcs(msvc = False):
119+
def get_fbgemm_avx2_srcs():
121120
return [
122121
#All the source files that either use avx2 instructions statically
123122
"src/EmbeddingSpMDMAvx2.cc",
@@ -151,8 +150,7 @@ def get_fbgemm_inline_avx2_srcs(msvc = False, buck = False):
151150
})
152151
return asm_srcs if not msvc else intrinsics_srcs
153152

154-
# buildifier: disable=unused-variable
155-
def get_fbgemm_avx512_srcs(msvc = False):
153+
def get_fbgemm_avx512_srcs():
156154
return [
157155
#All the source files that use avx512 instructions statically
158156
"src/FbgemmBfloat16ConvertAvx512.cc",

0 commit comments

Comments
 (0)